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 Open Handles #1

Open
Lindeneg opened this issue May 8, 2022 · 0 comments
Open

Jest Open Handles #1

Lindeneg opened this issue May 8, 2022 · 0 comments

Comments

@Lindeneg
Copy link
Owner

Lindeneg commented May 8, 2022

Apparently the cleanup is not done correctly in the live-server tests, even though the server is shutdown after each test and a global teardown that kills the test process is performed.

For now, a hacky solution is implemented by running Jest with --forceExit and --runInBand, both of which are discouraged.

It seems to be Jest having issues because node doesn't emit a destroy event for the TLSWRAP hook. However, supertest does seem to be able to handle this and thus a permanent fix could be to refactor all live-server tests to use supertest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant