As of Jest 22.0.0+, you can use the --clearCache
option:
Deletes the Jest cache directory and then exits without running tests. Will delete cacheDirectory if the option is passed, or Jest’s default cache directory.
As of Jest 22.0.0+, you can use the --clearCache
option:
Deletes the Jest cache directory and then exits without running tests. Will delete cacheDirectory if the option is passed, or Jest’s default cache directory.