Skip to content

Commit 7d57407

Browse files
committed
fix: 🐛 e2e tests to nuxt3-ts-complet template
- update dependencies
1 parent 11f2509 commit 7d57407

File tree

9 files changed

+88
-133
lines changed

9 files changed

+88
-133
lines changed

template-nuxt3-ts-complet/client/auto-imports.d.ts

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -191,94 +191,3 @@ declare module 'vue' {
191191
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
192192
}
193193
}
194-
declare module '@vue/runtime-core' {
195-
interface GlobalComponents {}
196-
interface ComponentCustomProperties {
197-
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
198-
readonly OhVueIcon: UnwrapRef<typeof import('oh-vue-icons')['OhVueIcon']>
199-
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
200-
readonly addIcons: UnwrapRef<typeof import('oh-vue-icons')['addIcons']>
201-
readonly afterAll: UnwrapRef<typeof import('vitest')['afterAll']>
202-
readonly afterEach: UnwrapRef<typeof import('vitest')['afterEach']>
203-
readonly assert: UnwrapRef<typeof import('vitest')['assert']>
204-
readonly beforeAll: UnwrapRef<typeof import('vitest')['beforeAll']>
205-
readonly beforeEach: UnwrapRef<typeof import('vitest')['beforeEach']>
206-
readonly chai: UnwrapRef<typeof import('vitest')['chai']>
207-
readonly computed: UnwrapRef<typeof import('vue')['computed']>
208-
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
209-
readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']>
210-
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
211-
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
212-
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
213-
readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>
214-
readonly describe: UnwrapRef<typeof import('vitest')['describe']>
215-
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
216-
readonly expect: UnwrapRef<typeof import('vitest')['expect']>
217-
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
218-
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
219-
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
220-
readonly h: UnwrapRef<typeof import('vue')['h']>
221-
readonly inject: UnwrapRef<typeof import('vue')['inject']>
222-
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
223-
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
224-
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
225-
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
226-
readonly it: UnwrapRef<typeof import('vitest')['it']>
227-
readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
228-
readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
229-
readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
230-
readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
231-
readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
232-
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
233-
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
234-
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
235-
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
236-
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
237-
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
238-
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
239-
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
240-
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
241-
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
242-
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
243-
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
244-
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
245-
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
246-
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
247-
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
248-
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
249-
readonly provide: UnwrapRef<typeof import('vue')['provide']>
250-
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
251-
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
252-
readonly ref: UnwrapRef<typeof import('vue')['ref']>
253-
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
254-
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
255-
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
256-
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
257-
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
258-
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
259-
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
260-
readonly suite: UnwrapRef<typeof import('vitest')['suite']>
261-
readonly test: UnwrapRef<typeof import('vitest')['test']>
262-
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
263-
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
264-
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
265-
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
266-
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
267-
readonly unref: UnwrapRef<typeof import('vue')['unref']>
268-
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
269-
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
270-
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
271-
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
272-
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
273-
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
274-
readonly useScheme: UnwrapRef<typeof import('@gouvminint/vue-dsfr')['useScheme']>
275-
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
276-
readonly useTabs: UnwrapRef<typeof import('@gouvminint/vue-dsfr')['useTabs']>
277-
readonly vi: UnwrapRef<typeof import('vitest')['vi']>
278-
readonly vitest: UnwrapRef<typeof import('vitest')['vitest']>
279-
readonly watch: UnwrapRef<typeof import('vue')['watch']>
280-
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
281-
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
282-
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
283-
}
284-
}
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-dsfr-nuxt-ts-starter",
3-
"version": "0.0.0",
43
"type": "module",
4+
"version": "0.0.0",
55
"scripts": {
66
"build": "nuxt build",
77
"dev": "nuxt dev",
@@ -18,32 +18,32 @@
1818
},
1919
"dependencies": {
2020
"@gouvfr/dsfr": "^1.11.2",
21-
"@gouvminint/vue-dsfr": "^5.10.3",
22-
"nuxt": "^3.11.1",
21+
"@gouvminint/vue-dsfr": "^5.19.3",
22+
"nuxt": "^3.13.0",
2323
"oh-vue-icons": "^1.0.0-rc3",
24-
"vue": "^3.4.21",
25-
"vue-dsfr-nuxt-module": "^1.1.1",
26-
"vue-router": "^4.3.0"
24+
"vue": "^3.4.38",
25+
"vue-dsfr-nuxt-module": "^1.1.2",
26+
"vue-router": "^4.4.3"
2727
},
2828
"devDependencies": {
29-
"@antfu/eslint-config": "^2.12.1",
30-
"@nuxt/test-utils": "^3.12.0",
31-
"@playwright/test": "^1.42.1",
32-
"@testing-library/jest-dom": "^6.4.2",
29+
"@antfu/eslint-config": "^3.0.0",
30+
"@nuxt/test-utils": "^3.14.1",
31+
"@playwright/test": "^1.46.1",
32+
"@testing-library/jest-dom": "^6.5.0",
3333
"@testing-library/user-event": "^14.5.2",
34-
"@testing-library/vue": "^8.0.3",
35-
"@types/jsdom": "^21.1.6",
36-
"@types/node": "^20.12.2",
37-
"@vue/test-utils": "^2.4.5",
34+
"@testing-library/vue": "^8.1.0",
35+
"@types/jsdom": "^21.1.7",
36+
"@types/node": "^20.16.2",
37+
"@vue/test-utils": "^2.4.6",
3838
"eslint": "9.0.0-rc.0",
39-
"happy-dom": "^14.3.10",
40-
"npm-run-all2": "^6.1.2",
39+
"happy-dom": "^15.4.2",
40+
"npm-run-all2": "^6.2.2",
4141
"nuxt-vitest": "^0.11.5",
42-
"playwright-core": "^1.42.1",
42+
"playwright-core": "^1.46.1",
4343
"typescript": "^5.4.3",
44-
"unplugin-auto-import": "^0.17.5",
45-
"vitest": "^0.34.6",
46-
"vitest-environment-nuxt": "^1.0.0",
47-
"vue-tsc": "^2.0.7"
44+
"unplugin-auto-import": "^0.18.2",
45+
"vitest": "^2.0.5",
46+
"vitest-environment-nuxt": "^1.0.1",
47+
"vue-tsc": "^2.1.2"
4848
}
4949
}

template-nuxt3-ts-complet/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineConfig<ConfigOptions>({
2727
reporter: 'html',
2828
timeout: 60000,
2929
use: {
30+
baseURL: 'http://localhost:3000',
3031
nuxt: {
3132
rootDir: fileURLToPath(new URL('.', import.meta.url)),
3233
},
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@tsconfig/node20/tsconfig.json",
3+
"include": ["./**/*"]
4+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { expect, test } from '@playwright/test'
2+
3+
// See here how to get started:
4+
// https://playwright.dev/docs/intro
5+
test('visits the app root url', async ({ page }) => {
6+
await page.goto('/')
7+
await expect(page.locator('.fr-header .router-link-exact-active').first()).toHaveText('Service')
8+
})

template-nuxt3-ts-simple/client/public/manifest.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
"name": "VueDsfr App",
33
"icons": [
44
{
5-
"src": "\/icons\/android-icon-36x36.png",
5+
"src": "/icons/android-icon-36x36.png",
66
"sizes": "36x36",
7-
"type": "image\/png",
7+
"type": "image/png",
88
"density": "0.75"
99
},
1010
{
11-
"src": "\/icons\/android-icon-48x48.png",
11+
"src": "/icons/android-icon-48x48.png",
1212
"sizes": "48x48",
13-
"type": "image\/png",
13+
"type": "image/png",
1414
"density": "1.0"
1515
},
1616
{
17-
"src": "\/icons\/android-icon-72x72.png",
17+
"src": "/icons/android-icon-72x72.png",
1818
"sizes": "72x72",
19-
"type": "image\/png",
19+
"type": "image/png",
2020
"density": "1.5"
2121
},
2222
{
23-
"src": "\/icons\/android-icon-96x96.png",
23+
"src": "/icons/android-icon-96x96.png",
2424
"sizes": "96x96",
25-
"type": "image\/png",
25+
"type": "image/png",
2626
"density": "2.0"
2727
},
2828
{
29-
"src": "\/icons\/android-icon-144x144.png",
29+
"src": "/icons/android-icon-144x144.png",
3030
"sizes": "144x144",
31-
"type": "image\/png",
31+
"type": "image/png",
3232
"density": "3.0"
3333
},
3434
{
35-
"src": "\/icons\/android-icon-192x192.png",
35+
"src": "/icons/android-icon-192x192.png",
3636
"sizes": "192x192",
37-
"type": "image\/png",
37+
"type": "image/png",
3838
"density": "4.0"
3939
}
4040
]

template-nuxt3-ts-simple/eslint.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,37 @@ import antfu from '@antfu/eslint-config'
22

33
export default antfu({
44
vue: true,
5+
typescript: true,
6+
}, {
7+
rules: {
8+
// 'style/comma-dangle': ['error', 'always-multiline'],
9+
'no-irregular-whitespace': 'warn',
10+
'vue/no-irregular-whitespace': 'warn',
11+
'style/space-before-function-paren': ['error', 'always'],
12+
'curly': ['error', 'all'],
13+
'ts/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
14+
'vue/max-attributes-per-line': [
15+
'error',
16+
{
17+
singleline: {
18+
max: 1,
19+
},
20+
multiline: {
21+
max: 1,
22+
},
23+
},
24+
],
25+
'style/spaced-comment': [
26+
'error',
27+
'always',
28+
{
29+
markers: [
30+
'#region',
31+
'#endregion',
32+
'/',
33+
],
34+
},
35+
],
36+
'style/comma-dangle': 'off',
37+
},
538
})

template-nuxt3-ts-simple/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default defineNuxtConfig({
3939
public: {
4040
vueDsfr: {
4141
icons: Object.values(icons),
42-
},
42+
},
4343
},
4444
},
4545
css: [
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-dsfr-nuxt-ts-starter",
3-
"version": "0.0.0",
43
"type": "module",
4+
"version": "0.0.0",
55
"scripts": {
66
"build": "nuxt build",
77
"dev": "nuxt dev",
@@ -12,15 +12,15 @@
1212
},
1313
"dependencies": {
1414
"@gouvfr/dsfr": "^1.11.2",
15-
"@gouvminint/vue-dsfr": "^5.10.3",
16-
"nuxt": "^3.11.1",
15+
"@gouvminint/vue-dsfr": "^5.19.3",
16+
"nuxt": "^3.13.0",
1717
"oh-vue-icons": "^1.0.0-rc3",
18-
"vue": "^3.4.21",
19-
"vue-router": "^4.3.0",
20-
"vue-dsfr-nuxt-module": "^1.1.0"
18+
"vue": "^3.4.38",
19+
"vue-dsfr-nuxt-module": "^1.1.2",
20+
"vue-router": "^4.4.3"
2121
},
2222
"devDependencies": {
23-
"@antfu/eslint-config": "^2.12.1",
24-
"eslint": "9.0.0-rc.0"
23+
"@antfu/eslint-config": "^3.0.0",
24+
"eslint": "9.9.1"
2525
}
2626
}

0 commit comments

Comments
 (0)