jest: Unrecognized option "clearCache" from `jest --clearCache`
running jest --clearCache
throws error Unrecognized option "clearCache".
I am running v22.1.1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (7 by maintainers)
We fixed our CI problem today. Inside our docker container, we got a node_modules folder in the root dictionary. Then somehow npm did pick the jest-cli from this parent node_modules folder instead of choosing the locally installed version for the project.
I think it is related by the fact, that the root folder did have a jest-cli package directly specified and the project had it only included by the jest package.