I\'m doing some slightly bizarre stuff using Jest for testing where I\'m writing some stuff to disk. If I use the watch flag in Jest however then I\'m finding (quit
watch
To exclude an entire folder, add the following in the "jest" property of the package.json file:
"modulePathIgnorePatterns": [ "/src/services" ],
To exclude an individual file:
"collectCoverageFrom": [ "!src/index.js" ],