mirror of https://github.com/aminya/setup-cpp
21 lines
514 B
TypeScript
21 lines
514 B
TypeScript
import { setupVcpkg } from "../vcpkg"
|
|
import { testBin, setupTmpDir } from "../../utils/tests/test-helpers"
|
|
|
|
jest.setTimeout(300000)
|
|
async function testVcpkg(directory: string) {
|
|
const { binDir } = await setupVcpkg("", directory, "")
|
|
await testBin("vcpkg", ["--version"], binDir)
|
|
return binDir
|
|
}
|
|
|
|
describe("setup-vcpkg", () => {
|
|
let directory: string
|
|
beforeAll(async () => {
|
|
directory = await setupTmpDir("vcpkg")
|
|
})
|
|
|
|
it("should setup vcpkg", async () => {
|
|
await testVcpkg(directory)
|
|
})
|
|
})
|