Skip to content

Commit 8b98c18

Browse files
committed
test: reorder test files fixtures for better understanding
1 parent cb816ec commit 8b98c18

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

test/parallel/test-runner-run.mjs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,13 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
149149
});
150150

151151
describe('AbortSignal', () => {
152-
it('should stop watch mode when abortSignal aborts', async () => {
153-
const controller = new AbortController();
154-
const result = await run({ files: [join(testFixtures, 'default-behavior/test/random.cjs')], watch: true, signal: controller.signal })
152+
it('should stop watch mode when abortSignal aborts', async () => {
153+
const controller = new AbortController();
154+
const result = await run({
155+
files: [join(testFixtures, 'default-behavior/test/random.cjs')],
156+
watch: true,
157+
signal: controller.signal
158+
})
155159
.compose(async function* (source) {
156160
for await (const chunk of source) {
157161
if (chunk.type === 'test:pass') {
@@ -161,8 +165,8 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
161165
}
162166
})
163167
.toArray();
164-
assert.deepStrictEqual(result, ['this should pass']);
165-
});
168+
assert.deepStrictEqual(result, ['this should pass']);
169+
});
166170

167171
it('should abort when test succeeded', async () => {
168172
const stream = run({

0 commit comments

Comments
 (0)