Read more

Jest: How to clear the cache

Michael Leimstädtner
February 02, 2022Software engineer at makandra GmbH

I recently was in a weird situation where my (Jest/CLI) tests were referencing a function that was no longer part of my code - I had just refactored it.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Apparently Jest has some kind of cache that caused the issue, running npx jest --clearCache solved it for me.

Posted by Michael Leimstädtner to makandra dev (2022-02-02 11:51)