diff --git a/.vscode/launch.json b/.vscode/launch.json index 45d2670566..1ff757d15c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -326,7 +326,8 @@ "--disable-extensions" ], "env": { - "TSX_TSCONFIG_PATH": "${workspaceFolder}/tsconfig.json" + "TSX_TSCONFIG_PATH": "${workspaceFolder}/tsconfig.json", + "CORETEST": "true" }, "internalConsoleOptions": "openOnSessionStart", "outFiles": [ diff --git a/test/base/cache.ts b/test/base/cache.ts index c72c24d1ff..d10a7b8298 100644 --- a/test/base/cache.ts +++ b/test/base/cache.ts @@ -18,7 +18,7 @@ import { CurrentTestRunInfo } from './simulationContext'; const compress = promisify(zlib.brotliCompress); const decompress = promisify(zlib.brotliDecompress); -const DefaultCachePath = process.env.VITEST ? path.resolve(__dirname, '..', 'simulation', 'cache') : path.resolve(__dirname, '..', 'test', 'simulation', 'cache'); +const DefaultCachePath = (process.env.VITEST ?? process.env.CORETEST) ? path.resolve(__dirname, '..', 'simulation', 'cache') : path.resolve(__dirname, '..', 'test', 'simulation', 'cache'); async function getGitRoot(cwd: string): Promise { const execAsync = promisify(exec);