Skip to content

Commit a2d0fcc

Browse files
fixup!: switch to assert.equal on a chunk of stdout (better failure output)
1 parent e7941fe commit a2d0fcc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/parallel/test-runner-no-isolation-hooks.mjs

+6-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ test('Using --require to define global hooks works', async (t) => {
5252
...testFiles,
5353
]);
5454

55-
t.assert.ok(stdout.includes(order));
55+
const testHookOutput = stdout.split('\n▶')[0];
56+
57+
t.assert.equal(testHookOutput, order);
5658
});
5759

5860
test('Using --import to define global hooks works', async (t) => {
@@ -62,5 +64,7 @@ test('Using --import to define global hooks works', async (t) => {
6264
...testFiles,
6365
]);
6466

65-
t.assert.ok(stdout.includes(order));
67+
const testHookOutput = stdout.split('\n▶')[0];
68+
69+
t.assert.equal(testHookOutput, order);
6670
});

0 commit comments

Comments
 (0)