-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #54705 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
- Loading branch information
Showing
9 changed files
with
283 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { allowGlobals, mustCall } from '../common/index.mjs'; | ||
import * as fixtures from '../common/fixtures.mjs'; | ||
import { deepStrictEqual } from 'node:assert'; | ||
import { run } from 'node:test'; | ||
|
||
const stream = run({ | ||
cwd: fixtures.path('test-runner', 'no-isolation'), | ||
isolation: 'none', | ||
}); | ||
|
||
|
||
stream.on('test:pass', mustCall(4)); | ||
// eslint-disable-next-line no-unused-vars | ||
for await (const _ of stream); | ||
allowGlobals(globalThis.GLOBAL_ORDER); | ||
deepStrictEqual(globalThis.GLOBAL_ORDER, [ | ||
'before one: <root>', | ||
'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', | ||
'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>', | ||
]); |
Oops, something went wrong.