test: skip graphviz test on Macos 11 and older

This commit is contained in:
Amin Yahyaabadi 2024-02-17 01:33:08 -08:00
parent 32bae2b687
commit 99a1254616
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-help
import { InstallationInfo } from "../../utils/setup/setupBin"
import { getVersion } from "../../versions/versions"
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
import { macosVersion } from "../../utils/env/macos_version"
jest.setTimeout(300000)
describe("setup-graphviz", () => {
@ -12,6 +13,11 @@ describe("setup-graphviz", () => {
})
it("should setup graphviz", async () => {
if (macosVersion()[0] <= 11) {
test.todo("Skipping graphviz test on macOS 11 or earlier")
return
}
const installInfo = await setupGraphviz(
getVersion("graphviz", undefined, await ubuntuVersion()),
directory,

View File

@ -6,7 +6,7 @@ import { execRootSync } from "admina"
jest.setTimeout(300000)
describe("setup-nala", () => {
if (!isUbuntu()) {
test.skip("should setup nala", () => {})
test.todo("should setup nala")
return
}
it("should setup nala", async () => {