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 does not exit when tests are finished running. #28

Open
ehthind opened this issue Dec 3, 2018 · 0 comments
Open

Jest does not exit when tests are finished running. #28

ehthind opened this issue Dec 3, 2018 · 0 comments

Comments

@ehthind
Copy link

ehthind commented Dec 3, 2018

Jest offers a CLI flag called --forceExit Forces Jest to exit after all tests have completed running even if there are resources that have not yet been cleaned up. This is useful when resources set up by test code cannot be adequately cleaned up.

There is also a CLI flag called --detectOpenHandles Which attempts to collect and print open handles preventing Jest from exiting cleanly.

It would be great if we could set these two flags on the invoke test Serverless call.

The mocha-serverless-plugin allows something very similar see this issue

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