ui_migration config(vitest) reduce heap size for unitest
This commit is contained in:
parent
591d3f6747
commit
e803d60013
3 changed files with 42 additions and 4 deletions
|
|
@ -19,7 +19,30 @@ export default defineConfig({
|
|||
],
|
||||
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
css: false,
|
||||
pool: 'forks',
|
||||
singleThread: true,
|
||||
|
||||
define: {
|
||||
__VUE_PROD_DEVTOOLS__: false,
|
||||
},
|
||||
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
clean: true,
|
||||
cleanOnStart: true,
|
||||
},
|
||||
|
||||
deps: {
|
||||
optimizer: {
|
||||
web: {
|
||||
enabled: true,
|
||||
include: ['@mui/material', 'lucide-react'], // Add your largest component dependencies here
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
environment: "happy-dom",
|
||||
|
||||
globals: true,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue