You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testPathPattern, which is documented and clearly implemented, is included in the config object, it throws the error Error: Unknown config option: testPathPattern in the cli.
In doing some digging, this error is caused because utils.normalizeConfig does not check for this property, and thus throws the Error
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
When
testPathPattern
, which is documented and clearly implemented, is included in theconfig
object, it throws the errorError: Unknown config option: testPathPattern
in the cli.In doing some digging, this error is caused because
utils.normalizeConfig
does not check for this property, and thus throws theError
Documentation of the config option:
https://facebook.github.io/jest/docs/api.html#config-testpathpattern-string
Implementation:
https://github.com/facebook/jest/search?utf8=%E2%9C%93&q=testPathPattern
utils.normalizeConfig:
https://github.com/facebook/jest/blob/aa6183dd44c20af1562c62d6c16ec1b90f728b3b/src/lib/utils.js#L165
The text was updated successfully, but these errors were encountered: