Jest modulePathIgnorePatterns doesn't work as expected

Viewed 1309

I have a submodule added to my repository, say its name is shared-lib. I don't want this lib to be tested by Jest runner so I added this option to Jest config in package.json: "modulePathIgnorePatterns": ["<rootDir>/shared-lib"], But it looks like Jest completely ignoring it. Any ideas why it could happen? Am I using it right? and here is test script in from package.json "test": "cross-env NODE_ENV=test jest --coverage",

0 Answers
Related