-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Mocha-like root hooks for test runner #54675
Copy link
Copy link
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
What is the problem this feature will solve?
Currently,
beforeandafteroutside adescriberun on every file, so projects that could have a global setup and teardown, such as server, database, or puppeteer browser, could run tests faster by executing a globalbeforeandafteronly once.What is the feature you are proposing to solve the problem?
Ensuring
beforeandafteroutside any test run only once, similar to Mocha Rook HooksWhat alternatives have you considered?
Alternatives:
mocha