You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were facing a problem with out react 16 application with the node upgradation from 14.17.0 to 20.17.0. The jest test cases fails for our project with the following error:-
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)
The version of jest, enzyme we are using are
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"jest": "^23.1.0",
"jest-cli": "^23.1.0",
"jest-css-modules": "^1.1.0",
"jest-enzyme": "^6.0.1",
"jest-junit": "^4.0.0",
When we applied a dev dependency with cheerio 1.0.0.rc.12 we are able to get it working without any change in the packages of our project. The solution is provided here https://stackoverflow.com/questions/78867305/jest-unit-tests-are-failing . However if we use the latest version of cheerio which is 1.0.0 then we get the same issue as that mentioned above. Hence we would like to know if the latest build of Cheerio can have the similar fix as that of 1.0.0.rc.12 because it looks like only Cheerio version rc12 is able to solve this issue. No other version of Cheerio has this fix.
The text was updated successfully, but these errors were encountered:
hi,
We were facing a problem with out react 16 application with the node upgradation from 14.17.0 to 20.17.0. The jest test cases fails for our project with the following error:-
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)
The version of jest, enzyme we are using are
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"jest": "^23.1.0",
"jest-cli": "^23.1.0",
"jest-css-modules": "^1.1.0",
"jest-enzyme": "^6.0.1",
"jest-junit": "^4.0.0",
When we applied a dev dependency with cheerio 1.0.0.rc.12 we are able to get it working without any change in the packages of our project. The solution is provided here https://stackoverflow.com/questions/78867305/jest-unit-tests-are-failing . However if we use the latest version of cheerio which is 1.0.0 then we get the same issue as that mentioned above. Hence we would like to know if the latest build of Cheerio can have the similar fix as that of 1.0.0.rc.12 because it looks like only Cheerio version rc12 is able to solve this issue. No other version of Cheerio has this fix.
The text was updated successfully, but these errors were encountered: