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:
unanmed 2026-09-10 09:45:56 +08:00
parent 31dd3de5be
commit 664d809c2e

View File

@ -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: {