Skip to content

Commit b4b5994

Browse files
committed
fix: provide process.env when spawning Vitest API
1 parent 2fac4fc commit b4b5994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ function createChildVitestProcess(tree: TestTree, meta: VitestMeta[]) {
275275
execPath: getConfig().nodeExecutable,
276276
execArgv,
277277
env: {
278+
...process.env,
278279
VITEST_VSCODE: 'true',
279280
},
280281
stdio: 'overlapped',

0 commit comments

Comments
 (0)