Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest beforeOnce and afterOnce #4709

Closed
OzairP opened this issue Oct 16, 2017 · 3 comments
Closed

Jest beforeOnce and afterOnce #4709

OzairP opened this issue Oct 16, 2017 · 3 comments

Comments

@OzairP
Copy link

OzairP commented Oct 16, 2017

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
beforeAll and afterAll run before and after every test suite. Which makes concurrency impossible when your app starts a server.
Multiple test suites will attempt to spawn a server on the same port.

What is the expected behavior?
beforeOnce and afterOnce would run only once before any test suite is run, and after all test suites are done respectively.

@xfumihiro
Copy link
Contributor

#4716

@thymikee
Copy link
Collaborator

Closing as duplicate then.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants