Skip to content

Mocha-like root hooks for test runner #54675

@ericfortis

Description

@ericfortis

What is the problem this feature will solve?

Currently, before and after outside a describe run 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 global before and after only once.

What is the feature you are proposing to solve the problem?

Ensuring before and after outside any test run only once, similar to Mocha Rook Hooks

What alternatives have you considered?

Alternatives:

  1. As is. It works, but it could be faster
  2. mocha

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions