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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)