Skip to content

Commit 73ec89a

Browse files
committed
test: test all the msvc version installations
1 parent 1d04cc2 commit 73ec89a

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

src/msvc/__tests__/msvc.test.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
1+
import which from "which"
12
import { testBin } from "../../utils/tests/test-helpers"
23
import { setupMSVC } from "../msvc"
34

45
jest.setTimeout(300000)
56
describe("setup-msvc", () => {
6-
it("should setup msvc", async () => {
7+
it("should setup msvc 2019", async () => {
78
if (process.platform !== "win32") {
89
return
910
}
1011
await setupMSVC("2019", "", process.arch)
12+
await testBin("cl", [])
13+
console.log(which("cl"))
14+
})
15+
16+
it("should setup msvc 2017", async () => {
17+
if (process.platform !== "win32") {
18+
return
19+
}
20+
await setupMSVC("2017", "", process.arch)
21+
await testBin("cl", [])
22+
console.log(which("cl"))
23+
})
1124

12-
try {
13-
await testBin("cl", [])
14-
} catch (err) {
15-
// TODO see #1
25+
it("should setup msvc 2015", async () => {
26+
if (process.platform !== "win32") {
27+
return
1628
}
29+
await setupMSVC("2015", "", process.arch)
30+
await testBin("cl", [])
31+
console.log(which("cl"))
1732
})
1833
})

0 commit comments

Comments
 (0)