I'm trying to make some test by using puppeteer and jest on create-react-app. I follow the instruction in this blog post:
https://blog.logrocket.com/end-to-end-testing-react-apps-with-puppeteer-and-jest-ce2f414b4fd7
In step 3, it is stated that "test": "jest"should be added to script at package.json file. However, there is an existing test object in package.json file which comes as default once you install create-react-app.
The default script object:
"scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }
Do I still need to change test object or remain as it is?
Thank you.
Aucun commentaire:
Enregistrer un commentaire