mirror of
https://github.com/motajs/template.git
synced 2026-09-13 10:18:50 +08:00
fix(02-05): increase Vitest hook timeout budget
- Load the root config through vitest/config - Allow full-suite imports and hooks up to 30 seconds
This commit is contained in:
parent
31dd3de5be
commit
664d809c2e
@ -1,4 +1,4 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
import vuejsx from '@vitejs/plugin-vue-jsx';
|
||||
import path from 'path';
|
||||
@ -43,6 +43,10 @@ export default defineConfig({
|
||||
...aliasesUser
|
||||
]
|
||||
},
|
||||
test: {
|
||||
testTimeout: 30000,
|
||||
hookTimeout: 30000
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
less: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user