I was digging around in the example projects in the Next.js project and in the Jest configuration for the Typescript project I found this pattern in the testPathIgnorePatterns in the Jest configuration:
<rootDir>[/\\\\](node_modules|.next)[/\\\\]
What exactly is this? Looks somewhat like a regular expression, but I don't understand the [/\\\\]
part?
I would like to extend the expression above with a positive lookahead in order to exclude certain node modules from being ignored, but I'm not quite sure how to achieve this?