Skip to content

Commit 6981e02

Browse files
committed
test: move fixture
1 parent c28791b commit 6981e02

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

File renamed without changes.

test/parallel/test-runner-run-global-hooks.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { spawn } from 'node:child_process';
99
import { once } from 'node:events';
1010

1111
const testFixtures = fixtures.path('test-runner', 'global-setup-teardown');
12+
const runnerFixture = fixtures.path('test-runner', 'test-runner-global-hooks.mjs');
1213

1314
describe('require(\'node:test\').run with global hooks', { concurrency: false }, () => {
1415
beforeEach(() => {
@@ -18,12 +19,11 @@ describe('require(\'node:test\').run with global hooks', { concurrency: false },
1819
async function runTestWithGlobalHooks({ globalSetupFile, testFile = 'test-file.js', runnerEnv = {} }) {
1920
const testFilePath = path.join(testFixtures, testFile);
2021
const globalSetupPath = path.join(testFixtures, globalSetupFile);
21-
const runner = path.join(import.meta.dirname, '..', 'fixtures', 'test-runner-global-hooks.mjs');
2222

2323
const child = spawn(
2424
process.execPath,
2525
[
26-
runner,
26+
runnerFixture,
2727
'--file', testFilePath,
2828
'--globalSetup', globalSetupPath,
2929
],

0 commit comments

Comments
 (0)