From: Haoqun Jiang Date: Fri, 3 Jun 2022 02:38:25 +0000 (+0800) Subject: feat: update to Cypress 10 X-Git-Tag: v3.2.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd4909aff0fc5fa7f0ad398e060108c09b367ecb;p=thirdparty%2Fvuejs%2Fcreate-vue.git feat: update to Cypress 10 --- diff --git a/index.ts b/index.ts index 57d51f6b..a8882856 100755 --- a/index.ts +++ b/index.ts @@ -302,6 +302,9 @@ async function init() { if (needsCypress) { render('tsconfig/cypress') } + if (needsCypressCT) { + render('tsconfig/cypress-ct') + } if (needsVitest) { render('tsconfig/vitest') } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2411382..2b2924e1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,20 +34,16 @@ importers: playground/cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 - cypress: ^9.7.0 + cypress: ^10.0.2 start-server-and-test: ^1.14.0 vite: ^2.9.9 vue: ^3.2.36 dependencies: vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -77,22 +73,18 @@ importers: playground/jsx-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 - cypress: ^9.7.0 + cypress: ^10.0.2 start-server-and-test: ^1.14.0 vite: ^2.9.9 vue: ^3.2.36 dependencies: vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -113,11 +105,9 @@ importers: playground/jsx-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 - cypress: ^9.7.0 + cypress: ^10.0.2 pinia: ^2.0.14 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -126,11 +116,9 @@ importers: pinia: 2.0.14_vue@3.2.36 vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -160,7 +148,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -174,7 +162,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -185,7 +173,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -199,7 +187,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -222,11 +210,9 @@ importers: playground/jsx-router-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 - cypress: ^9.7.0 + cypress: ^10.0.2 start-server-and-test: ^1.14.0 vite: ^2.9.9 vue: ^3.2.36 @@ -235,11 +221,9 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -262,11 +246,9 @@ importers: playground/jsx-router-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 - cypress: ^9.7.0 + cypress: ^10.0.2 pinia: ^2.0.14 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -277,11 +259,9 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -313,7 +293,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -329,7 +309,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -340,7 +320,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -356,7 +336,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -388,7 +368,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -402,7 +382,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -413,7 +393,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -427,7 +407,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -457,7 +437,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -469,7 +449,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -480,7 +460,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -492,7 +472,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -513,10 +493,8 @@ importers: playground/pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 - cypress: ^9.7.0 + cypress: ^10.0.2 pinia: ^2.0.14 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -525,10 +503,8 @@ importers: pinia: 2.0.14_vue@3.2.36 vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -555,7 +531,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -568,7 +544,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -578,7 +554,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -591,7 +567,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -612,10 +588,8 @@ importers: playground/router-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 - cypress: ^9.7.0 + cypress: ^10.0.2 start-server-and-test: ^1.14.0 vite: ^2.9.9 vue: ^3.2.36 @@ -624,10 +598,8 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -648,10 +620,8 @@ importers: playground/router-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@vitejs/plugin-vue': ^2.3.3 - cypress: ^9.7.0 + cypress: ^10.0.2 pinia: ^2.0.14 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -662,10 +632,8 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -694,7 +662,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -709,7 +677,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -719,7 +687,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -734,7 +702,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -763,7 +731,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -776,7 +744,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -786,7 +754,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -799,7 +767,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -828,12 +796,10 @@ importers: playground/typescript-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 typescript: ~4.7.2 @@ -843,12 +809,10 @@ importers: dependencies: vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -880,13 +844,11 @@ importers: playground/typescript-jsx-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 typescript: ~4.7.2 @@ -896,13 +858,11 @@ importers: dependencies: vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -936,13 +896,11 @@ importers: playground/typescript-jsx-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -954,13 +912,11 @@ importers: pinia: 2.0.14_qhv4oyzxhhzeba5rd2zztmcg2y vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -1008,7 +964,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1028,7 +984,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1045,7 +1001,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1065,7 +1021,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1101,13 +1057,11 @@ importers: playground/typescript-jsx-router-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 typescript: ~4.7.2 @@ -1119,13 +1073,11 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -1161,13 +1113,11 @@ importers: playground/typescript-jsx-router-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -1181,13 +1131,11 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -1237,7 +1185,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1259,7 +1207,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1276,7 +1224,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1298,7 +1246,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1348,7 +1296,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -1368,7 +1316,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1385,7 +1333,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -1405,7 +1353,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1453,7 +1401,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -1471,7 +1419,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1488,7 +1436,7 @@ importers: '@vitejs/plugin-vue-jsx': ^1.3.10 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -1506,7 +1454,7 @@ importers: '@vitejs/plugin-vue-jsx': 1.3.10 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1540,12 +1488,10 @@ importers: playground/typescript-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -1557,12 +1503,10 @@ importers: pinia: 2.0.14_qhv4oyzxhhzeba5rd2zztmcg2y vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -1607,7 +1551,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1626,7 +1570,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1642,7 +1586,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1661,7 +1605,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1695,12 +1639,10 @@ importers: playground/typescript-router-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 typescript: ~4.7.2 @@ -1712,12 +1654,10 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -1751,12 +1691,10 @@ importers: playground/typescript-router-pinia-cypress: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 '@types/node': ^16.11.36 '@vitejs/plugin-vue': ^2.3.3 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 npm-run-all: ^4.1.5 pinia: ^2.0.14 start-server-and-test: ^1.14.0 @@ -1770,12 +1708,10 @@ importers: vue: 3.2.36 vue-router: 4.0.15_vue@3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 '@types/node': 16.11.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 typescript: 4.7.2 @@ -1822,7 +1758,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1843,7 +1779,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1859,7 +1795,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 pinia: ^2.0.14 @@ -1880,7 +1816,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1927,7 +1863,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -1946,7 +1882,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -1962,7 +1898,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -1981,7 +1917,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -2026,7 +1962,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -2043,7 +1979,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -2059,7 +1995,7 @@ importers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 '@vue/tsconfig': ^0.1.3 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 npm-run-all: ^4.1.5 start-server-and-test: ^1.14.0 @@ -2076,7 +2012,7 @@ importers: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 '@vue/tsconfig': 0.1.3_@types+node@16.11.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 npm-run-all: 4.1.5 start-server-and-test: 1.14.0 @@ -2106,7 +2042,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -2117,7 +2053,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -2127,7 +2063,7 @@ importers: specifiers: '@vitejs/plugin-vue': ^2.3.3 '@vue/test-utils': ^2.0.0 - cypress: ^9.7.0 + cypress: ^10.0.2 jsdom: ^19.0.0 start-server-and-test: ^1.14.0 vite: ^2.9.9 @@ -2138,7 +2074,7 @@ importers: devDependencies: '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 + cypress: 10.0.2 jsdom: 19.0.0 start-server-and-test: 1.14.0 vite: 2.9.9 @@ -2157,26 +2093,20 @@ importers: template/config/cypress: specifiers: - cypress: ^9.7.0 + cypress: ^10.0.2 start-server-and-test: ^1.14.0 devDependencies: - cypress: 9.7.0 + cypress: 10.0.2 start-server-and-test: 1.14.0 template/config/cypress-ct: specifiers: - '@cypress/vite-dev-server': ^2.2.3 - '@cypress/vue': ^3.1.2 - cypress: ^9.7.0 - vite: ^2.9.9 + cypress: ^10.0.2 vue: ^3.2.36 dependencies: vue: 3.2.36 devDependencies: - '@cypress/vite-dev-server': 2.2.3_vite@2.9.9 - '@cypress/vue': 3.1.2_cypress@9.7.0+vue@3.2.36 - cypress: 9.7.0 - vite: 2.9.9 + cypress: 10.0.2 template/config/jsx: specifiers: @@ -2546,10 +2476,6 @@ packages: dev: true optional: true - /@cypress/mount-utils/1.0.2: - resolution: {integrity: sha512-Fn3fdTiyayHoy8Ol0RSu4MlBH2maQ2ZEXeEVKl/zHHXEQpld5HX3vdNLhK5YLij8cLynA4DxOT/nO9iEnIiOXw==} - dev: true - /@cypress/request/2.88.10: resolution: {integrity: sha512-Zp7F+R93N0yZyG34GutyTNr+okam7s/Fzc1+i3kcqOP8vk6OuajuE9qZJ6Rs+10/1JFtXFYMdyarnU1rZuJesg==} engines: {node: '>= 6'} @@ -2574,38 +2500,6 @@ packages: uuid: 8.3.2 dev: true - /@cypress/vite-dev-server/2.2.3_vite@2.9.9: - resolution: {integrity: sha512-E9cPKwReweYGRsupfR6Va1R1bHv3zPb3gHG68fyQwAjG4oPORaQlgfFWiR2i1pF+tRftvNfM0O2PBuKX3IvPxg==} - peerDependencies: - vite: '>= 2.1.3' - dependencies: - debug: 4.3.4 - get-port: 5.1.1 - vite: 2.9.9 - transitivePeerDependencies: - - supports-color - dev: true - - /@cypress/vue/3.1.2_cypress@9.7.0+vue@3.2.36: - resolution: {integrity: sha512-CqIBupPW6EhXJ7lXE64MBKh3VfdShHnuC3HBV/euHBt9tsgSo7RZHBTZUsKc8aM745VzVnuNiax+JV4CplrtLQ==} - engines: {node: '>=8'} - peerDependencies: - '@cypress/webpack-dev-server': '*' - babel-loader: '*' - cypress: '>=7.0.0' - vue: '>=3.0.0' - peerDependenciesMeta: - '@cypress/webpack-dev-server': - optional: true - babel-loader: - optional: true - dependencies: - '@cypress/mount-utils': 1.0.2 - '@vue/test-utils': 2.0.0_vue@3.2.36 - cypress: 9.7.0 - vue: 3.2.36 - dev: true - /@cypress/xvfb/1.2.4_supports-color@8.1.1: resolution: {integrity: sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==} dependencies: @@ -2796,7 +2690,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.18 + '@types/node': 17.0.36 dev: true optional: true @@ -3392,8 +3286,8 @@ packages: /csstype/2.6.20: resolution: {integrity: sha512-/WwNkdXfckNgw6S5R125rrW8ez139lBHWouiBvX8dfMFtcn6V81REDqnH7+CRpRipfYlyU1CmOnOxrmGcFOjeA==} - /cypress/9.7.0: - resolution: {integrity: sha512-+1EE1nuuuwIt/N1KXRR2iWHU+OiIt7H28jJDyyI4tiUftId/DrXYEwoDa5+kH2pki1zxnA0r6HrUGHV5eLbF5Q==} + /cypress/10.0.2: + resolution: {integrity: sha512-7+C4KHYBcfZrawss+Gt5PlS35rfc6ySc59JcHDVsIMm1E/J35dqE41UEXpdtwIq3549umCerNWnFADzqib4kcA==} engines: {node: '>=12.0.0'} hasBin: true requiresBuild: true @@ -4149,11 +4043,6 @@ packages: has-symbols: 1.0.3 dev: true - /get-port/5.1.1: - resolution: {integrity: sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==} - engines: {node: '>=8'} - dev: true - /get-stream/5.2.0: resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} engines: {node: '>=8'} @@ -4936,7 +4825,7 @@ packages: dev: true /once/1.4.0: - resolution: {integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=} + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: wrappy: 1.0.2 dev: true @@ -4961,7 +4850,7 @@ packages: dev: true /ospath/1.2.2: - resolution: {integrity: sha1-EnZjl3Sj+O8lcvf+QoDg6kVQwHs=} + resolution: {integrity: sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==} dev: true /p-map/4.0.0: @@ -4984,7 +4873,7 @@ packages: dev: true /path-is-absolute/1.0.1: - resolution: {integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=} + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} engines: {node: '>=0.10.0'} dev: true @@ -5025,11 +4914,11 @@ packages: dev: true /pend/1.2.0: - resolution: {integrity: sha1-elfrVQpng/kRUzH89GY9XI4AelA=} + resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} dev: true /performance-now/2.1.0: - resolution: {integrity: sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=} + resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==} dev: true /picocolors/1.0.0: @@ -5053,7 +4942,7 @@ packages: dev: true /pify/2.3.0: - resolution: {integrity: sha1-7RQaasBDqEnqWISY59yosVMw6Qw=} + resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} engines: {node: '>=0.10.0'} dev: true diff --git a/scripts/snapshot.mjs b/scripts/snapshot.mjs index 0a859fe0..104fddf4 100644 --- a/scripts/snapshot.mjs +++ b/scripts/snapshot.mjs @@ -55,7 +55,10 @@ const bin = path.posix.relative('../playground/', '../outfile.cjs') cd(playgroundDir) for (const flags of flagCombinations) { const projectName = flags.join('-') - console.log(`Creating project ${projectName}`) + + console.log(`Removing previously generated project ${projectName}`) + await $`rm -rf ${projectName}` + console.log(`Creating project ${projectName}`) await $`node ${[bin, projectName, ...flags.map((flag) => `--${flag}`), '--force']}` } diff --git a/template/config/cypress-ct/cypress.config.js b/template/config/cypress-ct/cypress.config.js new file mode 100644 index 00000000..18bd9bec --- /dev/null +++ b/template/config/cypress-ct/cypress.config.js @@ -0,0 +1,15 @@ +const { defineConfig } = require('cypress') + +export default defineConfig({ + e2e: { + specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', + baseUrl: 'http://localhost:4173' + }, + component: { + specPattern: 'src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}', + devServer: { + framework: 'vue', + bundler: 'vite' + } + } +}) diff --git a/template/config/cypress-ct/cypress.config.ts b/template/config/cypress-ct/cypress.config.ts new file mode 100644 index 00000000..c8fac129 --- /dev/null +++ b/template/config/cypress-ct/cypress.config.ts @@ -0,0 +1,15 @@ +import { defineConfig } from 'cypress' + +export default defineConfig({ + e2e: { + specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', + baseUrl: 'http://localhost:4173' + }, + component: { + specPattern: 'src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}', + devServer: { + framework: 'vue', + bundler: 'vite' + } + } +}) diff --git a/template/config/cypress-ct/cypress.json b/template/config/cypress-ct/cypress.json deleted file mode 100644 index a10a9035..00000000 --- a/template/config/cypress-ct/cypress.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "baseUrl": "http://localhost:4173", - "component": { - "componentFolder": "src", - "testFiles": "**/__tests__/*.spec.{js,ts,jsx,tsx}" - } -} diff --git a/template/config/cypress-ct/cypress/plugins/index.js b/template/config/cypress-ct/cypress/plugins/index.js deleted file mode 100644 index db04a79b..00000000 --- a/template/config/cypress-ct/cypress/plugins/index.js +++ /dev/null @@ -1,29 +0,0 @@ -/* eslint-env node */ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -const { startDevServer } = require('@cypress/vite-dev-server') - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -} diff --git a/template/config/cypress-ct/cypress/plugins/index.ts b/template/config/cypress-ct/cypress/plugins/index.ts deleted file mode 100644 index 71dd1ac0..00000000 --- a/template/config/cypress-ct/cypress/plugins/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-env node */ -// *********************************************************** -// This example plugins/index.ts can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -import { startDevServer } from '@cypress/vite-dev-server' - -export default ((on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - on('dev-server:start', (options) => { - return startDevServer({ options }) - }) - return config -}) as Cypress.PluginConfig diff --git a/template/config/cypress-ct/cypress/support/component-index.html b/template/config/cypress-ct/cypress/support/component-index.html new file mode 100644 index 00000000..ac6e79fd --- /dev/null +++ b/template/config/cypress-ct/cypress/support/component-index.html @@ -0,0 +1,12 @@ + + + + + + + Components App + + +
+ + \ No newline at end of file diff --git a/template/config/cypress-ct/cypress/support/component.js b/template/config/cypress-ct/cypress/support/component.js new file mode 100644 index 00000000..b234fad4 --- /dev/null +++ b/template/config/cypress-ct/cypress/support/component.js @@ -0,0 +1,27 @@ +// *********************************************************** +// This example support/component.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands' + +// Alternatively you can use CommonJS syntax: +// require('./commands') + +import { mount } from 'cypress/vue' + +Cypress.Commands.add('mount', mount) + +// Example use: +// cy.mount(MyComponent) diff --git a/template/config/cypress-ct/cypress/support/component.ts b/template/config/cypress-ct/cypress/support/component.ts new file mode 100644 index 00000000..74ae3ea3 --- /dev/null +++ b/template/config/cypress-ct/cypress/support/component.ts @@ -0,0 +1,39 @@ +// *********************************************************** +// This example support/component.ts is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands' + +// Alternatively you can use CommonJS syntax: +// require('./commands') + +import { mount } from 'cypress/vue' + +// Augment the Cypress namespace to include type definitions for +// your custom command. +// Alternatively, can be defined in cypress/support/component.d.ts +// with a at the top of your spec. +declare global { + namespace Cypress { + interface Chainable { + mount: typeof mount + } + } +} + +Cypress.Commands.add('mount', mount) + +// Example use: +// cy.mount(MyComponent) diff --git a/template/config/cypress-ct/package.json b/template/config/cypress-ct/package.json index 8ea18acc..1c7bce44 100644 --- a/template/config/cypress-ct/package.json +++ b/template/config/cypress-ct/package.json @@ -1,15 +1,12 @@ { "scripts": { - "test:unit": "cypress open-ct", - "test:unit:ci": "cypress run-ct --quiet --reporter spec" + "test:unit": "cypress open", + "test:unit:ci": "cypress run --component --quiet --reporter spec" }, "dependencies": { "vue": "^3.2.36" }, "devDependencies": { - "@cypress/vite-dev-server": "^2.2.3", - "@cypress/vue": "^3.1.2", - "cypress": "^9.7.0", - "vite": "^2.9.9" + "cypress": "^10.0.2" } } diff --git a/template/config/cypress-ct/src/components/__tests__/HelloWorld.spec.js b/template/config/cypress-ct/src/components/__tests__/HelloWorld.cy.js similarity index 56% rename from template/config/cypress-ct/src/components/__tests__/HelloWorld.spec.js rename to template/config/cypress-ct/src/components/__tests__/HelloWorld.cy.js index a69f3a9d..535a0e51 100644 --- a/template/config/cypress-ct/src/components/__tests__/HelloWorld.spec.js +++ b/template/config/cypress-ct/src/components/__tests__/HelloWorld.cy.js @@ -1,13 +1,12 @@ -import { mount } from '@cypress/vue' import HelloWorld from '../HelloWorld.vue' describe('HelloWorld', () => { it('playground', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) + cy.mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) }) it('renders properly', () => { - mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) + cy.mount(HelloWorld, { props: { msg: 'Hello Cypress' } }) cy.get('h1').should('contain', 'Hello Cypress') }) }) diff --git a/template/config/cypress/cypress.config.js b/template/config/cypress/cypress.config.js new file mode 100644 index 00000000..cabb5f9f --- /dev/null +++ b/template/config/cypress/cypress.config.js @@ -0,0 +1,8 @@ +const { defineConfig } = require('cypress') + +export default defineConfig({ + e2e: { + specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', + baseUrl: 'http://localhost:4173' + } +}) diff --git a/template/config/cypress/cypress.config.ts b/template/config/cypress/cypress.config.ts new file mode 100644 index 00000000..0f66080f --- /dev/null +++ b/template/config/cypress/cypress.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'cypress' + +export default defineConfig({ + e2e: { + specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', + baseUrl: 'http://localhost:4173' + } +}) diff --git a/template/config/cypress/cypress.json b/template/config/cypress/cypress.json deleted file mode 100644 index fe9238de..00000000 --- a/template/config/cypress/cypress.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "baseUrl": "http://localhost:4173" -} diff --git a/template/config/cypress/cypress/integration/example.spec.js b/template/config/cypress/cypress/e2e/example.cy.js similarity index 100% rename from template/config/cypress/cypress/integration/example.spec.js rename to template/config/cypress/cypress/e2e/example.cy.js diff --git a/template/config/cypress/cypress/jsconfig.json b/template/config/cypress/cypress/e2e/jsconfig.json similarity index 70% rename from template/config/cypress/cypress/jsconfig.json rename to template/config/cypress/cypress/e2e/jsconfig.json index b5b2f972..c33dbde1 100644 --- a/template/config/cypress/cypress/jsconfig.json +++ b/template/config/cypress/cypress/e2e/jsconfig.json @@ -4,5 +4,5 @@ "lib": ["es5", "dom"], "types": ["cypress"] }, - "include": ["./**/*"] + "include": ["./**/*", "../support/e2e.*"] } diff --git a/template/config/cypress/cypress/plugins/index.js b/template/config/cypress/cypress/plugins/index.js deleted file mode 100644 index 6a1b4098..00000000 --- a/template/config/cypress/cypress/plugins/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-env node */ -/// -// *********************************************************** -// This example plugins/index.js can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -/** - * @type {Cypress.PluginConfig} - */ -// eslint-disable-next-line no-unused-vars -module.exports = (on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - return config -} diff --git a/template/config/cypress/cypress/plugins/index.ts b/template/config/cypress/cypress/plugins/index.ts deleted file mode 100644 index c6679b40..00000000 --- a/template/config/cypress/cypress/plugins/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* eslint-env node */ -// *********************************************************** -// This example plugins/index.ts can be used to load plugins -// -// You can change the location of this file or turn off loading -// the plugins file with the 'pluginsFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/plugins-guide -// *********************************************************** - -// This function is called when a project is opened or re-opened (e.g. due to -// the project's config changing) - -export default ((on, config) => { - // `on` is used to hook into various events Cypress emits - // `config` is the resolved Cypress config - return config -}) as Cypress.PluginConfig diff --git a/template/config/cypress/cypress/support/commands.ts b/template/config/cypress/cypress/support/commands.ts new file mode 100644 index 00000000..95857aea --- /dev/null +++ b/template/config/cypress/cypress/support/commands.ts @@ -0,0 +1,37 @@ +/// +// *********************************************** +// This example commands.ts shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// +// +// -- This is a parent command -- +// Cypress.Commands.add('login', (email, password) => { ... }) +// +// +// -- This is a child command -- +// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) +// +// declare global { +// namespace Cypress { +// interface Chainable { +// login(email: string, password: string): Chainable +// drag(subject: string, options?: Partial): Chainable +// dismiss(subject: string, options?: Partial): Chainable +// visit(originalFn: CommandOriginalFn, url: string, options: Partial): Chainable +// } +// } +// } diff --git a/template/config/cypress/cypress/support/index.js b/template/config/cypress/cypress/support/e2e.js similarity index 100% rename from template/config/cypress/cypress/support/index.js rename to template/config/cypress/cypress/support/e2e.js diff --git a/template/config/cypress/package.json b/template/config/cypress/package.json index 79bf45d0..f995b4b1 100644 --- a/template/config/cypress/package.json +++ b/template/config/cypress/package.json @@ -1,10 +1,10 @@ { "scripts": { - "test:e2e": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress open'", - "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run'" + "test:e2e": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress open --e2e'", + "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run --e2e'" }, "devDependencies": { - "cypress": "^9.7.0", + "cypress": "^10.0.2", "start-server-and-test": "^1.14.0" } } diff --git a/template/tsconfig/base/tsconfig.vite-config.json b/template/tsconfig/base/tsconfig.config.json similarity index 63% rename from template/tsconfig/base/tsconfig.vite-config.json rename to template/tsconfig/base/tsconfig.config.json index 93fe5846..c2d3a309 100644 --- a/template/tsconfig/base/tsconfig.vite-config.json +++ b/template/tsconfig/base/tsconfig.config.json @@ -1,6 +1,6 @@ { "extends": "@vue/tsconfig/tsconfig.node.json", - "include": ["vite.config.*"], + "include": ["vite.config.*", "vitest.config.*", "cypress.config.*"], "compilerOptions": { "composite": true, "types": ["node"] diff --git a/template/tsconfig/base/tsconfig.json b/template/tsconfig/base/tsconfig.json index 61952eeb..8d235999 100644 --- a/template/tsconfig/base/tsconfig.json +++ b/template/tsconfig/base/tsconfig.json @@ -10,7 +10,7 @@ "references": [ { - "path": "./tsconfig.vite-config.json" + "path": "./tsconfig.config.json" } ] } diff --git a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json index dec23bc6..f3aef9ab 100644 --- a/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +++ b/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json @@ -1,5 +1,6 @@ { "extends": "./tsconfig.app.json", + "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "cypress/support/component.*"], "exclude": [], "compilerOptions": { "composite": true, diff --git a/template/tsconfig/cypress-ct/tsconfig.json b/template/tsconfig/cypress-ct/tsconfig.json index 50fe5cdd..040665bb 100644 --- a/template/tsconfig/cypress-ct/tsconfig.json +++ b/template/tsconfig/cypress-ct/tsconfig.json @@ -2,7 +2,7 @@ "files": [], "references": [ { - "path": "./tsconfig.vite-config.json" + "path": "./tsconfig.config.json" }, { "path": "./tsconfig.app.json" diff --git a/template/tsconfig/vitest/tsconfig.json b/template/tsconfig/vitest/tsconfig.json index 24f21b06..31f90037 100644 --- a/template/tsconfig/vitest/tsconfig.json +++ b/template/tsconfig/vitest/tsconfig.json @@ -2,7 +2,7 @@ "files": [], "references": [ { - "path": "./tsconfig.vite-config.json" + "path": "./tsconfig.config.json" }, { "path": "./tsconfig.app.json" diff --git a/template/tsconfig/vitest/tsconfig.vite-config.json b/template/tsconfig/vitest/tsconfig.vite-config.json deleted file mode 100644 index d20d8726..00000000 --- a/template/tsconfig/vitest/tsconfig.vite-config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@vue/tsconfig/tsconfig.node.json", - "include": ["vite.config.*"], - "compilerOptions": { - "composite": true, - "types": ["node", "vitest"] - } -} diff --git a/utils/renderEslint.ts b/utils/renderEslint.ts index 3fd661a4..4e4e9601 100644 --- a/utils/renderEslint.ts +++ b/utils/renderEslint.ts @@ -49,8 +49,8 @@ function configureEslint({ language, styleGuide, needsPrettier, needsCypress, ne const cypressOverrides = [ { files: needsCypressCT - ? ['**/__tests__/*.spec.{js,ts,jsx,tsx}', 'cypress/integration/**.spec.{js,ts,jsx,tsx}'] - : ['cypress/integration/**.spec.{js,ts,jsx,tsx}'], + ? ['**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}', 'cypress/e2e/**.{cy,spec}.{js,ts,jsx,tsx}'] + : ['cypress/e2e/**.{cy,spec}.{js,ts,jsx,tsx}'], extends: ['plugin:cypress/recommended'] } ]