First of all, great article. @aromanarguello I am having trouble with jest.config.js in create-react-app configuration. It would be very nice if you could help me.
const { defaults } = require('jest-config'); module.exports = { ...defaults, testEnviroment: "jest-environment-jsdom-sixteen", automock: false, verbose: true, }
Why is this showing me an error whenever I am trying to do npm test?
npm test
This is my npm test command in package.json:
package.json
"test": "react-scripts test -- --config=jest.config.js"
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First of all, great article.
@aromanarguello I am having trouble with jest.config.js in create-react-app configuration.
It would be very nice if you could help me.
Why is this showing me an error whenever I am trying to do
npm test
?This is my
npm test
command inpackage.json
: