I am trying to get jest to tun my unit tests but not my integration tests. They live in the same folders along with the components they test. The unit tests have the filename pattern *.test.js, where the * is the component name. The integration tests have the pattern *.integration.test.js, where the * is the component name.
I'm bad with Regex. The best that I've come up with is:
(?!\bintegration\b)
This excludes all of the integration tests, but jest is now trying to run my index.js files. I need the expression to exclude 'integration, but include 'test'