From 6e81f142e2c3797d58c761854c219a119c6b8014 Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Mon, 2 Oct 2023 00:10:17 -0400 Subject: [PATCH] Option to skip testing disk images --- src/archive/hdi.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/archive/hdi.test.ts b/src/archive/hdi.test.ts index ca33477..780bd42 100644 --- a/src/archive/hdi.test.ts +++ b/src/archive/hdi.test.ts @@ -6,6 +6,9 @@ import {platformIsMac, specFixturesPath, testArchive} from '../archive.spec'; import {ArchiveHdi} from './hdi'; +// eslint-disable-next-line no-process-env +const NO_HDI = /^(1|true|yes)$/i.test(process.env['SHOCKPKG_NO_HDI'] || ''); + void describe('archive/hdi', () => { void describe('ArchiveHdi', () => { void it('file extensions', () => { @@ -18,7 +21,7 @@ void describe('archive/hdi', () => { testArchive( ArchiveHdi, - platformIsMac + platformIsMac && !NO_HDI ? [ 'test-archive-hybrid.iso', 'test-archive-hfsp.dmg',