Closed
Description
@testing-library/dom
version: master = v7.29.4
Relevant code or config:
This test leaks setTimeout
so that tests added below are not run by jest.
What you did:
Added tests for a pull request.
What happened:
Jest fails to setTimeout
for subsequent tests.
Adding a describe
block with test
, the tests are ignored without error messages.
Adding a describe
block with test.only
reveals the problem.
Suggested solution:
Enclose the tests in a describe
block and define beforeAll
/afterEach
to properly clean up after the test.
Metadata
Metadata
Assignees
Labels
No labels