-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Description
@testing-library/domversion: master = v7.29.4
Relevant code or config:
This test leaks setTimeout so that tests added below are not run by jest.
| test('should not use realTimers when timers are not faked with useFakeTimers', () => { |
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