mirror of https://github.com/aminya/setup-cpp
test: restore the environment before each msvc test
This commit is contained in:
parent
313d3ece41
commit
95f4f7daa1
|
@ -2,8 +2,14 @@ import which from "which"
|
||||||
import { testBin } from "../../utils/tests/test-helpers"
|
import { testBin } from "../../utils/tests/test-helpers"
|
||||||
import { setupMSVC } from "../msvc"
|
import { setupMSVC } from "../msvc"
|
||||||
|
|
||||||
|
const initial_env = { ...process.env }
|
||||||
|
|
||||||
jest.setTimeout(300000)
|
jest.setTimeout(300000)
|
||||||
describe("setup-msvc", () => {
|
describe("setup-msvc", () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
process.env = initial_env
|
||||||
|
})
|
||||||
|
|
||||||
it("should setup msvc 2019", async () => {
|
it("should setup msvc 2019", async () => {
|
||||||
if (process.platform !== "win32") {
|
if (process.platform !== "win32") {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue