Skip to content

[Bug]: test notify › does not report --notify flag is flaky #12592

Closed
@F3n67u

Description

Version

N/A

Steps to reproduce

/Users/runner/work/jest/jest/e2e/__tests__/detectOpenHandles.ts

  ● notify › does not report --notify flag

    expect(received).toBe(expected) // Object.is equality

    Expected: ""
    Received: "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."

      90 |     const textAfterTest = getTextAfterTest(stderr);
      91 |
    > 92 |     expect(textAfterTest).toBe('');
         |                           ^
      93 |   });
      94 | });
      95 |

      at Object.toBe (e2e/__tests__/detectOpenHandles.ts:92:[27](https://github.com/facebook/jest/runs/5575218844?check_suite_focus=true#step:8:27))

flaky ci run:

Expected behavior

this test should always pass

Actual behavior

this test fail occasionally

Additional context

No response

Environment

ci environment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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