Skip to content

Commit

Permalink
fix test stream
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkit-30 committed Dec 4, 2023
1 parent 7513467 commit 3c8c335
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/parallel/test-runner-run.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// Flags: --expose-internals

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 testStream from 'node:stream';
import stream from 'internal/test_runner/tests_stream';

const { TestsStream } = stream;
const testFixtures = fixtures.path('test-runner');

describe('require(\'node:test\').run', { concurrency: true }, () => {
Expand Down Expand Up @@ -471,7 +474,7 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
const stream = run({
files: [join(testFixtures, 'default-behavior/test/random.cjs')],
setup: common.mustCall((root) => {
assert(root instanceof testStream);
assert(root instanceof TestsStream);
}),
});
stream.on('test:fail', common.mustNotCall());
Expand Down

0 comments on commit 3c8c335

Please sign in to comment.