Skip to content

Jest did not exit one second after the test run has completed. #127

@EtienneDx

Description

@EtienneDx

Hi, I've been wrapping my head around this for a few days now, but it seems that jest refuses to exit after the tests are finished. I checked the debug, the teardown is properly executed, but I have the following message popping up every time whatever I try:

Jest did not exit one second after the test run has completed.

This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.

I've been running the test on windows 10, both on a directory with real test and on a directory with a single expect(true).toBe(true) and nothing seems to work. Any idea of what I could do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions