From b88718b706186ea44a8e17a0268d2d6fe221f9b8 Mon Sep 17 00:00:00 2001 From: Pietro Marchini Date: Mon, 16 Sep 2024 12:03:02 +0200 Subject: [PATCH] test: update test case --- .../test-runner-no-isolation-different-cwd.mjs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test/parallel/test-runner-no-isolation-different-cwd.mjs b/test/parallel/test-runner-no-isolation-different-cwd.mjs index 777322bce88da8..bdddd368d19f12 100644 --- a/test/parallel/test-runner-no-isolation-different-cwd.mjs +++ b/test/parallel/test-runner-no-isolation-different-cwd.mjs @@ -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); @@ -18,27 +18,17 @@ deepStrictEqual(globalThis.GLOBAL_ORDER, [ 'suite one', 'before two: ', '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: ', 'after two: ', ]);