admin管理员组文章数量:1022443
The exact error is as follows:
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
TypeError: (0, _MyApp.getDataInfo) is not a function
This error occurs when I do
npm test
npm version: 8.19.2 node version: v18.12.1
This error started to occur when I upgraded my existing code from node14 to node18. npm test in package.json: react-scripts test --runInBand --detectOpenHandles
jest version: ^28.1.1 react-script: ^5.0.0
Tried adding async and await in multiple test cases but that didn't work.
The exact error is as follows:
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
TypeError: (0, _MyApp.getDataInfo) is not a function
This error occurs when I do
npm test
npm version: 8.19.2 node version: v18.12.1
This error started to occur when I upgraded my existing code from node14 to node18. npm test in package.json: react-scripts test --runInBand --detectOpenHandles
jest version: ^28.1.1 react-script: ^5.0.0
Tried adding async and await in multiple test cases but that didn't work.
本文标签:
版权声明:本文标题:javascript - React-Jest error: node:internalprocesspromises:288 triggerUncaughtException(err, true * fromPromise *); TypeError - 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745573214a2156862.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论