From 99a12546163f9f85a71e2a8a66df1a1dcb4aabf0 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 17 Feb 2024 01:33:08 -0800 Subject: [PATCH] test: skip graphviz test on Macos 11 and older --- src/graphviz/__tests__/graphviz.test.ts | 6 ++++++ src/nala/__tests__/nala.test.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/graphviz/__tests__/graphviz.test.ts b/src/graphviz/__tests__/graphviz.test.ts index 64bdb261..c50fcbc1 100644 --- a/src/graphviz/__tests__/graphviz.test.ts +++ b/src/graphviz/__tests__/graphviz.test.ts @@ -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, diff --git a/src/nala/__tests__/nala.test.ts b/src/nala/__tests__/nala.test.ts index a1c29463..4accab51 100644 --- a/src/nala/__tests__/nala.test.ts +++ b/src/nala/__tests__/nala.test.ts @@ -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 () => {