My project structure:
src
- foo
- test A
- test B
- test C
- bar
...
I ignore foo
and not run testcases from there like discussed in this question:
testPathIgnorePatterns: ['src/foo/'],
but because of reasons I want to run src/foo/test B
How can I achieve that? Neither of the following worked.
testMatch: [
'**/*.test.{ts,tsx,js,jsx}',
'src/foo/test B',
],
testPathIgnorePatterns: ['src/foo/'],
testMatch: [
'**/*.test.{ts,tsx,js,jsx}',
'!src/foo/**/*',
'src/foo/test B',
],