Skip to content

Commit 79a2e60

Browse files
committed
fix: add test deps to catalog, exclude tests from typecheck
1 parent b5188d6 commit 79a2e60

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

nuxt.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ export default defineNuxtConfig({
6161
{ code: 'de', language: 'de-DE', name: 'Deutsch', file: 'de.json' },
6262
],
6363
defaultLocale: 'en',
64-
lazy: true,
65-
langDir: 'locales',
6664
},
6765
compatibilityDate: '2025-10-01',
6866
})

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
"devDependencies": {
3939
"@antfu/eslint-config": "catalog:",
4040
"@nuxt/eslint": "catalog:",
41-
"@nuxt/test-utils": "^3.19.2",
41+
"@nuxt/test-utils": "catalog:",
4242
"@unocss/eslint-plugin": "catalog:",
4343
"@unocss/nuxt": "catalog:",
4444
"@unocss/preset-attributify": "catalog:",
45-
"@vue/test-utils": "^2.4.6",
45+
"@vue/test-utils": "catalog:",
4646
"drizzle-kit": "catalog:",
4747
"eslint": "catalog:",
4848
"eslint-plugin-format": "catalog:",
49-
"happy-dom": "^19.0.2",
49+
"happy-dom": "catalog:",
5050
"nimiq-css": "catalog:",
51-
"playwright-core": "^1.55.1",
51+
"playwright-core": "catalog:",
5252
"typescript": "catalog:",
5353
"unocss-preset-onmax": "catalog:",
5454
"wrangler": "catalog:"

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@ catalog:
44
'@nuxt/fonts': ^0.11.4
55
'@nuxt/icon': ^2.0.0
66
'@nuxt/image': 1.11.0
7+
'@nuxt/test-utils': ^3.19.2
78
'@nuxthub/core': latest
89
'@nuxtjs/i18n': ^10.1.0
910
'@unocss/eslint-plugin': ^66.5.2
1011
'@unocss/nuxt': ^66.5.2
1112
'@unocss/preset-attributify': ^66.5.2
13+
'@vue/test-utils': ^2.4.6
1214
'@vueuse/nuxt': ^13.9.0
1315
consola: ^3.4.2
1416
drizzle-kit: latest
1517
drizzle-orm: latest
1618
eslint: ^9.36.0
1719
eslint-plugin-format: ^1.0.2
20+
happy-dom: ^19.0.2
1821
nimiq-css: 1.0.0-beta.110
1922
nimiq-icons: 1.0.0-beta.110
2023
nuxt: latest
2124
nuxt-safe-runtime-config: ^0.0.3
25+
playwright-core: ^1.55.1
2226
postgres: ^3.4.7
2327
reka-ui: ^2.5.1
2428
typescript: ^5.7.3
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { describe, expect, it } from 'vitest'
21
import { mountSuspended } from '@nuxt/test-utils/runtime'
3-
import IndexPage from './index.vue'
2+
import { describe, expect, it } from 'vitest'
3+
import IndexPage from '~/pages/index.vue'
44

55
describe('index page i18n', () => {
66
it('displays English title by default', async () => {

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
{ "path": "./.nuxt/tsconfig.shared.json" },
66
{ "path": "./.nuxt/tsconfig.node.json" }
77
],
8-
"files": []
8+
"files": [],
9+
"exclude": [
10+
"**/*.test.ts",
11+
"**/*.spec.ts"
12+
]
913
}

0 commit comments

Comments
 (0)