Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown config option thrown with config.testPathPattern #501

Closed
heymichaelp opened this issue Sep 12, 2015 · 1 comment
Closed

Unknown config option thrown with config.testPathPattern #501

heymichaelp opened this issue Sep 12, 2015 · 1 comment

Comments

@heymichaelp
Copy link

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

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

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants