Skip to content

Commit 986c613

Browse files
authored
Explain how to clear the cache
This explanation by @thymikee worked like a charm! #3705 (comment)
1 parent 4d0a434 commit 986c613

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/en/CLI.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Alias: `-b`. Exit the test suite immediately upon the first failing test suite.
8484

8585
Whether to use the cache. Defaults to true. Disable the cache using `--no-cache`. *Note: the cache should only be disabled if you are experiencing caching related problems. On average, disabling the cache makes Jest at least two times slower.*
8686

87+
If you want to inspect or clear the cache, use `--showConfig` and look at the `cacheDirectory` value.
88+
8789
### `--ci`
8890

8991
When this option is provided, Jest will assume it is running in a CI environment. This changes the behavior when a new snapshot is encountered. Instead of the regular behavior of storing a new snapshot automatically, it will fail the test and require Jest to be run with `--updateSnapshot`.

0 commit comments

Comments
 (0)