Have to specified testEnvironment
in jest.config.js
file in v27.0.3
?
#11494
Labels
testEnvironment
in jest.config.js
file in v27.0.3
?
#11494
馃悰 Bug Report
Default test environment in
jest
isjsdom
. But all my test cases crashed after I upgraded myjest
to27.0.3
.But when I specified
testEnvironment: 'jsdom'
injest.config.js
, it works!To Reproduce
Steps to reproduce the behavior:
jest
to27.0.3
;jest
command inReact
project;Expected behavior
Expect that all test cases passed, but it crashed and logged the message as follows:
Link to repl or repo (highly encouraged)
webpack-react-template
envinfo
Maybe it was cause by this: https://github.com/facebook/jest/pull/11482/files#diff-9dbb1da56fa2045712eef8db063b52b3555a799b93e858b7449b5561bef52d9fR613
The text was updated successfully, but these errors were encountered: