Skip to content

Commit

Permalink
test: restore the environment before each msvc test
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 6, 2021
1 parent 313d3ec commit 95f4f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/msvc/__tests__/msvc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ import which from "which"
import { testBin } from "../../utils/tests/test-helpers"
import { setupMSVC } from "../msvc"

const initial_env = { ...process.env }

jest.setTimeout(300000)
describe("setup-msvc", () => {
beforeEach(() => {
process.env = initial_env
})

it("should setup msvc 2019", async () => {
if (process.platform !== "win32") {
return
Expand Down

0 comments on commit 95f4f7d

Please sign in to comment.