From f35243585c2c893ed24175e488d03cfdb9f91f10 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 31 Oct 2025 15:48:53 +0900 Subject: [PATCH] fix: include `vitest/node` types to fix Vitest 4 type errors --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index f3f535547..2ed4d754e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -48,7 +48,7 @@ }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ // "typeRoots": [], /* List of folders to include type definitions from. */ - "types": ["vitest/globals"], /* Type declaration files to be included in compilation. */ + "types": ["vitest/globals", "vitest/node"], /* Type declaration files to be included in compilation. */ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */