I use jest testing framework. And I use git worktree and I have a different branch as a directory. So now I have two __tests__
directories:
__tests__/
docusaurus/__tests__/
How can I ignore the nested directory? This doesn’t work: Specify jest test files directory
I’ve tried:
testMatch: [
'__tests__/*.spec.js'
]
and
testMatch: [
'./__tests__/*.spec.js'
]
But this only makes that jest can’t find my tests. I would like to not have to add docusaurus to ignore because I want this to work on any directory. I don’t want to change the config file each time I create a work tree.