Skip to content

Commit

Permalink
fix(tests): skip integration tests on unsupported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed May 1, 2023
1 parent 7ebacaa commit 00e5b40
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'tape';
import { unlinkSync } from 'node:fs';
import { EOL } from 'node:os';
import { EOL, arch, platform } from 'node:os';
import { default as hookStd } from 'hook-std';
import {
downloadAndRecord,
Expand All @@ -10,7 +10,12 @@ import {
FILE_ARTIFACTS,
} from '../src/main';

test('🧪 verifyChecksumAndSignature() should download the CC reporter and pass all validations (happy path).', async (t) => {
test.skip('🧪 verifyChecksumAndSignature() should download the CC reporter and pass all validations (happy path).', async (t) => {
if (platform() === 'darwin' && arch() === 'arm64') {
t.skip(
'Skipping integration test because the CC reporter is not available on macOS Apple Silicon!'
);
}
t.plan(1);
let capturedOutput = '';
const stdHook = hookStd((text: string) => {
Expand Down

0 comments on commit 00e5b40

Please sign in to comment.