-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededneeds discussionWe need to discuss this to come up with a good solutionWe need to discuss this to come up with a good solution
Description
@testing-library/dom
version: 7.29.6- Testing Framework and version: Jest@fix(env-jsdom): remove
setImmediate
andclearImmediate
jestjs/jest#11222 - DOM Environment: [email protected]
Relevant code or config:
require('@testing-libray/react')
What you did:
Ran the test without global setImmediate
and clearImmediate
defined
What happened:
Reproduction:
See jestjs/jest#11222. Essentially, delete setImmediate
and clearImmediate
from global
in the JSDOM env Jest sets up.
Problem description:
It throws runtime errors at require
/import
-time
Suggested solution:
Do a typeof setImmediate !== 'undefined'
before using it.
joaopedrodcf and vicary
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededneeds discussionWe need to discuss this to come up with a good solutionWe need to discuss this to come up with a good solution