jestjs/jest

Jest test cases fails when we upgrade the node and npm from 14.17.0 to 20.17.0

nabhonil opened this issue · 2 comments

Whenever we are upgrading the node and npm from 14.17.0 to 20.17.0 we are facing the following when we run the jest test cases.

Cannot find module 'node:stream' from 'index.js'       
at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:221:17)      
at Object. (../node_modules/parse5-parser-stream/dist/cjs/index.js:4:23)

If we include the cheerio version 1.0.0.RC.12 then we are able to get pass this issue. Because it avoids using the parse5-parser-stream. But we would like to know why this failure happens with the latest node?

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.