|
| 1 | +import which from "which" |
1 | 2 | import { testBin } from "../../utils/tests/test-helpers"
|
2 | 3 | import { setupMSVC } from "../msvc"
|
3 | 4 |
|
4 | 5 | jest.setTimeout(300000)
|
5 | 6 | describe("setup-msvc", () => {
|
6 |
| - it("should setup msvc", async () => { |
| 7 | + it("should setup msvc 2019", async () => { |
7 | 8 | if (process.platform !== "win32") {
|
8 | 9 | return
|
9 | 10 | }
|
10 | 11 | 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 | + }) |
11 | 24 |
|
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 |
16 | 28 | }
|
| 29 | + await setupMSVC("2015", "", process.arch) |
| 30 | + await testBin("cl", []) |
| 31 | + console.log(which("cl")) |
17 | 32 | })
|
18 | 33 | })
|
0 commit comments