Skip to content

Jest warning on leaks if tests fail by timeout #73

@wawaqa

Description

@wawaqa

Although this is not a critical issue, I'd suggest to have a look into it when we have time to improve the product.
If Jest tests fails by timeout, the following warning is displayed:
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
Steps to reproduce:

  1. Set low timeout (e.g. 30 secs) in Jest
  2. Run tests with scans
    image

Relates to #74

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions