I want to make tests of my create-react-app using jest.
One of node_modules have test-error,
but I don't want jest to work with node_modules folder.
In the documentation I found configuration property "collectCoverageFrom" and tried to use itin my package.json:
....
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom ",
"eject": "react-scripts eject"
},
"jest": {
"collectCoverageFrom": [
"!/node_modules/*"
]
}
But there is nothing changed.
Aucun commentaire:
Enregistrer un commentaire