Jest is picking up an old version of a package and thus my tests fail unless I use --no-cache
. I can even delete the package folder from folder node_modules
and Jest is happy to run the tests (almost all are passing).
So how do I clear the Jest cache?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…