From 664d809c2e7439f4d6ed334cc23172824490edba Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 10 Sep 2026 09:45:56 +0800 Subject: [PATCH] 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 --- vite.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 3b2ec72..92000be 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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: {