Skip to content

Commit

Permalink
chore: skip broken test on windows and node 21
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 16, 2024
1 parent c872aa5 commit ddc8849
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import {access, mkdir, rm, writeFile} from 'fs/promises';
import * as os from 'os';

Check failure on line 9 in packages/jest-worker/src/workers/__tests__/WorkerEdgeCases.test.ts

View workflow job for this annotation

GitHub Actions / Typecheck Examples and Tests

'os' is declared but its value is never read.
import {dirname, join} from 'path';
import {transformFileAsync} from '@babel/core';
import {
Expand All @@ -28,6 +29,13 @@ const processChildWorkerPath = join(
);
const threadChildWorkerPath = join(writeDestination, 'workers/threadChild.js');

if (process.platform === 'win32' && process.version.startsWith('v21.')) {
// eslint-disable-next-line jest/no-focused-tests
test.only('skipping test on broken platform', () => {
console.warn('Skipping test on broken platform');
});
}

beforeAll(async () => {
await mkdir(writeDestination, {recursive: true});

Expand Down

0 comments on commit ddc8849

Please sign in to comment.