diff --git a/test/parallel/test-runner-run.mjs b/test/parallel/test-runner-run.mjs index d1f9d35242c045..d61e77e68f3d03 100644 --- a/test/parallel/test-runner-run.mjs +++ b/test/parallel/test-runner-run.mjs @@ -469,13 +469,13 @@ describe('require(\'node:test\').run', { concurrency: true }, () => { it('should pass instance of stream to setup', async () => { const stream = run({ - files: [], - setup: (root) => { + files: [join(testFixtures, 'default-behavior/test/random.cjs')], + setup: common.mustCall((root) => { assert(root instanceof testStream); - }, + }), }); stream.on('test:fail', common.mustNotCall()); - stream.on('test:pass', common.mustNotCall()); + stream.on('test:pass', common.mustCall()); // eslint-disable-next-line no-unused-vars for await (const _ of stream); });