Skip to content

Commit

Permalink
test: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Sep 16, 2024
1 parent ec3ff3e commit b88718b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/parallel/test-runner-no-isolation-different-cwd.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const stream = run({
});


stream.on('test:pass', mustCall(5));
stream.on('test:pass', mustCall(4));
// eslint-disable-next-line no-unused-vars
for await (const _ of stream);
allowGlobals(globalThis.GLOBAL_ORDER);
Expand All @@ -18,27 +18,17 @@ deepStrictEqual(globalThis.GLOBAL_ORDER, [
'suite one',
'before two: <root>',
'suite two',

'beforeEach one: suite one - test',
'beforeEach two: suite one - test',
'suite one - test',
'afterEach one: suite one - test',
'afterEach two: suite one - test',

'beforeEach one: test one',
'beforeEach two: test one',
'test one',
'afterEach one: test one',
'afterEach two: test one',

'before suite two: suite two',

'beforeEach one: suite two - test',
'beforeEach two: suite two - test',
'suite two - test',
'afterEach one: suite two - test',
'afterEach two: suite two - test',

'after one: <root>',
'after two: <root>',
]);

0 comments on commit b88718b

Please sign in to comment.