Browse Source

feat: 增加vitest

main
谢亚昕 3 months ago
parent
commit
8a703b2cbb
  1. 6
      package.json
  2. 2598
      pnpm-lock.yaml
  3. 7
      vitest.config.js

6
package.json

@ -6,7 +6,8 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"test": "vitest"
},
"dependencies": {
"vite-plugin-vue2": "^2.0.3",
@ -14,6 +15,7 @@
"vue-template-compiler": "^2.7.16"
},
"devDependencies": {
"vite": "^4.5.5"
"vite": "^4.5.5",
"vitest": "^2.1.8"
}
}

2598
pnpm-lock.yaml

File diff suppressed because it is too large

7
vitest.config.js

@ -0,0 +1,7 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
globals: true,
},
});
Loading…
Cancel
Save