serverless-jest-plugin icon indicating copy to clipboard operation
serverless-jest-plugin copied to clipboard

Jest does not exit when tests are finished running.

Open ehthind opened this issue 8 years ago • 0 comments

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

ehthind avatar Dec 03 '18 22:12 ehthind