admin管理员组文章数量:1135117
Has anyone successfully upgraded to latest Jest version 29
?
I'm receiving an error:
Error: Test environment jest-environment-jsdom cannot be found. Make sure the testEnvironment configuration option points to an existing node module.
Has anyone successfully upgraded to latest Jest version 29
?
I'm receiving an error:
Error: Test environment jest-environment-jsdom cannot be found. Make sure the testEnvironment configuration option points to an existing node module.
Share
Improve this question
edited Sep 3, 2022 at 18:53
anon
asked Apr 26, 2022 at 11:51
marko424marko424
5,2765 gold badges22 silver badges36 bronze badges
1 Answer
Reset to default 285Jest team added more descriptive error message in version 28.0.1
Error:...
As of Jest 28 "jsdom" is no longer shipped by default, make sure to install it separately.
Installing jsdom
package resolves the issue:
# npm
npm install -D jest-environment-jsdom
# yarn
yarn add -D jest-environment-jsdom
版权声明:本文标题:javascript - Upgrading Jest to v29 - Error Test environment jest-environment-jsdom cannot be found - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736907270a1956025.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论