ui_migration feature(unitesting) Add unitesting configuration and dependencies
This commit is contained in:
parent
4e58d613d0
commit
80b32800f9
3 changed files with 905 additions and 10 deletions
887
webapp/package-lock.json
generated
887
webapp/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -31,6 +31,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.28.5",
|
||||
"@pinia/testing": "^1.0.3",
|
||||
"@vitejs/plugin-vue": "^6.0.6",
|
||||
"@vue/eslint-config-prettier": "9.0.0",
|
||||
"autoprefixer": "^10.4.24",
|
||||
|
|
@ -40,6 +41,7 @@
|
|||
"eslint-plugin-pinia": "^0.4.2",
|
||||
"eslint-plugin-prettier": "^5.1.0",
|
||||
"eslint-plugin-vue": "^9.20.0",
|
||||
"jsdom": "^29.1.1",
|
||||
"less": "^4.5.1",
|
||||
"material-symbols": "^0.39.1",
|
||||
"postcss-html": "^1.8.1",
|
||||
|
|
@ -49,7 +51,8 @@
|
|||
"stylelint-config-standard": "^40.0.0",
|
||||
"stylelint-config-standard-less": "^4.1.0",
|
||||
"typescript-eslint": "^8.59.0",
|
||||
"vite": "^7.3.1"
|
||||
"vite": "^7.3.1",
|
||||
"vitest": "^4.1.6"
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
|
|
|
|||
23
webapp/vitest.config.js
Normal file
23
webapp/vitest.config.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
// File: vitest.config.js
|
||||
// Generic configuration for vitest
|
||||
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
|
||||
globals: true,
|
||||
},
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue