Skip to content

Commit 95f4f7d

Browse files
committed
test: restore the environment before each msvc test
1 parent 313d3ec commit 95f4f7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/msvc/__tests__/msvc.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ import which from "which"
22
import { testBin } from "../../utils/tests/test-helpers"
33
import { setupMSVC } from "../msvc"
44

5+
const initial_env = { ...process.env }
6+
57
jest.setTimeout(300000)
68
describe("setup-msvc", () => {
9+
beforeEach(() => {
10+
process.env = initial_env
11+
})
12+
713
it("should setup msvc 2019", async () => {
814
if (process.platform !== "win32") {
915
return

0 commit comments

Comments
 (0)