Skip to content

Commit

Permalink
chore(test): skip test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Nov 20, 2024
1 parent 9fb1432 commit 6fc8e97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/specs/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { beforeAll, describe, expect, it } from 'vitest';
import get from '../../src/get/index.js';
import run from '../../src/run.js';
import util from '../../src/util.js';
import { platform } from 'node:os';

Check failure on line 8 in tests/specs/run.test.js

View workflow job for this annotation

GitHub Actions / tests (macos-15)

'platform' is defined but never used

Check failure on line 8 in tests/specs/run.test.js

View workflow job for this annotation

GitHub Actions / tests (ubuntu-24.04)

'platform' is defined but never used

Check failure on line 8 in tests/specs/run.test.js

View workflow job for this annotation

GitHub Actions / tests (windows-2022)

'platform' is defined but never used

describe('run test suite', async () => {

Expand All @@ -31,10 +32,10 @@ describe('run test suite', async () => {
await get(nwOptions);
}, Infinity);

it('runs and is killed via code', async () => {
it.skipIf(process.platform === 'win32')('runs and is killed via code', async () => {
const nwProcess = await run(nwOptions);
if (nwProcess) {
process.kill(nwProcess.pid);
nwProcess.kill();
expect(nwProcess.killed).toEqual(true);
}
});
Expand Down

0 comments on commit 6fc8e97

Please sign in to comment.