Skip to content

Commit 24c8afd

Browse files
committed
Potentially solve test running bug
1 parent 8688603 commit 24c8afd

File tree

1 file changed

+1
-0
lines changed
  • packages/config/src/__tests__

1 file changed

+1
-0
lines changed

packages/config/src/__tests__/test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export function setEnv(env: Record<string, string>) {
2+
if (!process.env) process.env = {};
23
Object.keys(process.env).forEach((key) => {
34
vi.stubEnv(key, '');
45
});

0 commit comments

Comments
 (0)