Skip to content

test_runner: most global hooks set up via --require don't trigger #57728

Closed
@JakobJingleheimer

Description

@JakobJingleheimer

Version

HEAD

Platform

All supported platforms are effected.

Subsystem

test_runner

What steps will reproduce the bug?

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

How often does it reproduce? Is there a required condition?

100%

What is the expected behavior? Why is that the expected behavior?

It should behave like --import

What do you see instead?

before(): global
before one: <root>
suite one
before two: <root>
suite two
- beforeEach(): global
beforeEach one: suite one - test
beforeEach two: suite one - test
suite one - test
- afterEach(): global
afterEach one: suite one - test
afterEach two: suite one - test
before suite two: suite two
- beforeEach(): global
beforeEach one: suite two - test
beforeEach two: suite two - test
suite two - test
- afterEach(): global
afterEach one: suite two - test
afterEach two: suite two - test
- after(): global
after one: <root>
after two: <root>

Additional information

Discovered via #57419 (comment) #57595

Metadata

Metadata

Assignees

Labels

test_runnerIssues and PRs related to the test runner subsystem.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions