Skip to content

Commit 24eb106

Browse files
committed
test_runner: remove unused test fixture references
1 parent 4824fbf commit 24eb106

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/parallel/test-runner-bail.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ const { describe, it } = require('node:test');
66
const { spawnSync } = require('node:child_process');
77
const assert = require('node:assert');
88

9-
const testFixtures = fixtures.path('test-runner', 'bailout');
10-
119
describe('node:test bail', () => {
1210
it('should run all tests when --test-bail is not set', () => {
1311
const child = spawnSync(
@@ -17,7 +15,6 @@ describe('node:test bail', () => {
1715
'--test-reporter=spec',
1816
fixtures.path('test-runner', 'bailout', 'sequential', 'test.mjs'),
1917
],
20-
{ cwd: testFixtures }
2118
);
2219

2320
assert.strictEqual(child.stderr.toString(), '');
@@ -40,7 +37,6 @@ describe('node:test bail', () => {
4037
'--test-reporter=spec',
4138
fixtures.path('test-runner', 'bailout', 'sequential', 'test.mjs'),
4239
],
43-
{ cwd: testFixtures }
4440
);
4541

4642
assert.strictEqual(child.stderr.toString(), '');
@@ -64,7 +60,6 @@ describe('node:test bail', () => {
6460
'--test-isolation=none',
6561
fixtures.path('test-runner', 'bailout', 'sequential', 'test.mjs'),
6662
],
67-
{ cwd: testFixtures }
6863
);
6964

7065
assert.strictEqual(child.stderr.toString(), '');
@@ -89,7 +84,6 @@ describe('node:test bail', () => {
8984
fixtures.path('test-runner', 'bailout', 'parallel-loading', 'slow-loading.mjs'),
9085
fixtures.path('test-runner', 'bailout', 'parallel-loading', 'infinite-loop.mjs'),
9186
],
92-
{ cwd: testFixtures }
9387
);
9488

9589
assert.strictEqual(child.stderr.toString(), '');
@@ -114,8 +108,7 @@ describe('node:test bail', () => {
114108
fixtures.path('test-runner', 'bailout', 'parallel-concurrency', 'first.mjs'),
115109
fixtures.path('test-runner', 'bailout', 'parallel-concurrency', 'second.mjs'),
116110
fixtures.path('test-runner', 'bailout', 'parallel-concurrency', 'third.mjs'),
117-
],
118-
{ cwd: testFixtures }
111+
]
119112
);
120113

121114
assert.strictEqual(child.stderr.toString(), '');
@@ -138,7 +131,6 @@ describe('node:test bail', () => {
138131
'--test-reporter=spec',
139132
fixtures.path('test-runner', 'bailout', 'hooks-order', 'test.mjs'),
140133
],
141-
{ cwd: testFixtures }
142134
);
143135

144136
assert.strictEqual(child.stderr.toString(), '');
@@ -169,7 +161,6 @@ describe('node:test bail', () => {
169161
const child = spawnSync(
170162
process.execPath,
171163
['--test', '--test-bail', '--watch'],
172-
{ cwd: testFixtures }
173164
);
174165

175166
assert.match(child.stderr.toString(),

0 commit comments

Comments
 (0)