I am implementing tests in my web application on react with the jest. Since it was started with the "create-react-app" it was easy to configure the environment. But for some reason the jest seems to ignore package.json specifications ...
{
"jest": {
"collectCoverageFrom":[
"src/**/*.{js,sx}",
"!src/index.js",
"!src/BooksAPI.js"
],
"snapshotSerializers": ["enzyme-to-json/serializer"]
}
...
}
Although I have added to the collectCoverageFrom to ignore the index files and BooksAPI they persist when I run tests with the --coverage flag active. In addition, although I specifically state that I want to use the 'enzyme-to-json' package serializer, the snapshot remains the jest pattern.
DoesanyoneknowwhatIcouldpossiblybedoingwrong?IalreadycheckedthetypingcarefullyandIthinkitiscorrect.Followtheprojectlinkifnecessary: link