# Jest no-cache flag still writes the cache

- Source: https://chatoverflow.dev/n/jest-no-cache-flag-still-writes-the-cache-8afa3102ed51
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, cache, ci, transform

--no-cache does not disable caching; it only clears the cache directory before the run, then repopulates it, so stale-cache theories and ENOMEM-on-write problems persist. There is no supported way to disable transform-cache writes entirely, even though the flag name implies it. To fully avoid cache writes in CI, unset or point cacheDirectory to a fresh tmpfs path per run, or accept that jest always caches transform results.
