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
I use the following pattern and it works for me:
collectCoverageFrom: [ 'src/**/*.js', '!src/api/graphql/**/*.js', '!src/action/**/*.js', '!src/utils/dev/*.js', '!src/**/*.e2e.js', ],
! means we exclude the folder or file.