Skip to content

Commit e69922f

Browse files
committed
chore: remove vitest but use cypress instead, bump vfm to 4.0.5
1 parent 9a2e5ed commit e69922f

15 files changed

+37
-712
lines changed

.vscode/settings.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
},
55
"[vue]": {
66
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
7-
},
8-
"vitest.commandLine": "pnpm run test"
7+
}
98
}

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@vorms/core": "^1.0.0",
1818
"@vue-final-modal/nuxt": "workspace:1.0.0",
19-
"vue-final-modal": "workspace:4.0.4",
19+
"vue-final-modal": "workspace:4.0.5",
2020
"vue3-drag-resize": "^2.0.5"
2121
}
2222
}

examples/nuxt3/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
},
1616
"dependencies": {
1717
"@vue-final-modal/nuxt": "^1.0.0",
18-
"vue-final-modal": "^4.0.4"
18+
"vue-final-modal": "^4.0.5"
1919
}
2020
}

examples/vue3/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"vue": "^3.2.45",
13-
"vue-final-modal": "^4.0.4"
13+
"vue-final-modal": "^4.0.5"
1414
},
1515
"devDependencies": {
1616
"@iconify/vue": "^4.0.0",
@@ -19,7 +19,7 @@
1919
"postcss": "^8.4.21",
2020
"tailwindcss": "^3.2.4",
2121
"typescript": "^4.9.4",
22-
"vite": "^4.0.4",
22+
"vite": "^4.0.5",
2323
"vue-tsc": "^1.0.24"
2424
}
2525
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:viteplay": "pnpm --filter viteplay build",
1111
"dev:vfm": "pnpm --filter vue-final-modal dev",
1212
"build:vfm": "pnpm --filter vue-final-modal build",
13-
"test:vfm": "pnpm --filter vue-final-modal test",
13+
"test:vfm": "pnpm --filter vue-final-modal cypress:run",
1414
"coverage:vfm": "pnpm --filter vue-final-modal coverage",
1515
"release:vfm": "pnpm --filter vue-final-modal release",
1616
"lint": "eslint . --ext=.ts,.vue --fix",
@@ -31,7 +31,7 @@
3131
"pnpm": "^7.26.0",
3232
"sass": "^1.57.1",
3333
"typescript": "^4.9.4",
34-
"vite": "^4.0.4",
34+
"vite": "^4.0.5",
3535
"vue-tsc": "^1.0.24"
3636
}
3737
}

packages/nuxt/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"@nuxt/kit": "^3.1.0",
27-
"vue-final-modal": "^4.0.4"
27+
"vue-final-modal": "^4.0.5"
2828
},
2929
"devDependencies": {
3030
"@nuxt/module-builder": "^0.2.1",
Binary file not shown.
Binary file not shown.
Binary file not shown.

packages/vue-final-modal/package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
"scripts": {
2424
"dev": "vue-tsc --noEmit && vite build -w",
2525
"build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.build-dts.json --declaration --emitDeclarationOnly",
26-
"test": "vitest run",
27-
"coverage": "vitest run --coverage",
2826
"cypress:open": "cypress open --browser chrome --component",
2927
"cypress:run": "cypress run --browser chrome --component",
3028
"typecheck": "vue-tsc --noEmit",
31-
"release": "pnpm build && pnpm test && pnpm cypress:run && release-it"
29+
"release": "pnpm build && pnpm cypress:run && release-it"
3230
},
3331
"dependencies": {
3432
"@vueuse/core": "^9.11.1",
@@ -39,14 +37,11 @@
3937
"devDependencies": {
4038
"@cypress/vue": "^5.0.3",
4139
"@release-it/conventional-changelog": "^5.1.1",
42-
"@vitest/coverage-istanbul": "^0.28.1",
4340
"@vue-macros/volar": "^0.5.15",
4441
"cypress": "^12.4.1",
45-
"jsdom": "^21.1.0",
4642
"release-it": "^15.6.0",
4743
"unplugin-vue-define-options": "^1.1.4",
48-
"unplugin-vue-macros": "^1.4.2",
49-
"vitest": "^0.28.1"
44+
"unplugin-vue-macros": "^1.4.2"
5045
},
5146
"peerDependencies": {
5247
"@vueuse/core": ">=9.11.1",

packages/vue-final-modal/test/VueFinalModal.test.ts

-84
This file was deleted.

packages/vue-final-modal/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"baseUrl": ".",
66
"types": [
77
"vite/client",
8-
"vitest",
98
"unplugin-vue-define-options/macros-global",
109
"cypress"
1110
],

packages/vue-final-modal/vite.config.ts

-17
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,4 @@ export default defineConfig({
4747
define: {
4848
__DEV__: JSON.stringify(!process.env.prod),
4949
},
50-
test: {
51-
coverage: {
52-
provider: 'istanbul',
53-
reporter: ['text', 'lcov'],
54-
},
55-
include: ['test/**/*.test.ts'],
56-
environment: 'jsdom',
57-
deps: {
58-
inline: [
59-
'@vue',
60-
'@vueuse',
61-
'@vueuse/integrations/useFocusTrap',
62-
'focus-trap',
63-
'vue-final-modal',
64-
],
65-
},
66-
},
6750
})

0 commit comments

Comments
 (0)