Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Jul 19, 2024
commit 71df5bf69f176aaeaedab61a02675249297d35fe
7 changes: 3 additions & 4 deletions test/parallel/test-runner-run-files-undefined.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import * as common from '../common/index.mjs';
import tmpdir from '../common/tmpdir.js';
import { describe, it, run, beforeEach } from 'node:test';
import { dot, spec, tap } from 'node:test/reporters';
import child_process from 'child_process';
import { fork } from 'node:child_process';

if (process.env.CHILD === 'true') {
describe('require(\'node:test\').run with no files', { concurrency: true }, () => {
beforeEach(() => {
tmpdir.refresh();
process.chdir(tmpdir.path);
})
});

it('should neither pass or fail', async () => {
const stream = run({
Expand Down Expand Up @@ -44,9 +43,9 @@ if (process.env.CHILD === 'true') {
// eslint-disable-next-line no-unused-vars
for await (const _ of stream);
});
})
});
} else {
const child = fork(import.meta.filename, [], {
fork(import.meta.filename, [], {
env: { CHILD: 'true' }
});
}
2 changes: 1 addition & 1 deletion test/parallel/test-runner-run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as common from '../common/index.mjs';
import * as fixtures from '../common/fixtures.mjs';
import { join } from 'node:path';
import { describe, it, run } from 'node:test';
import { dot, spec, tap } from 'node:test/reporters';
import assert from 'node:assert';
import tmpdir from '../common/tmpdir.js';

const testFixtures = fixtures.path('test-runner');

Expand Down