I want to exclude a specific folder to be scanned for tests.
I have a folder structure like this:
/app
/services
/components
/helper
/...more folders
To run all test in app/services
this works:
npx jest --testPathPattern=app/services
How to run all tests in app
but not those in app/services
?
I tried this:
jest --testPathPattern='^((?!app/services).)*$'
but it still tests the folder app/services