My application is made using create react app and npm. In the jest's official documentation, https://jestjs.io/docs/tutorial-react , they only have information about testing CRA apps using yarn. Does this mean we cannot use jest to test our React app using npm?
You can use jest with CRA, in fact it's already built-in to CRA.
Try run npm test
Read more details here https://create-react-app.dev/docs/running-tests
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.