Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluffynuts/patch-jest-cache
patches jest cache behavior to suck less
https://github.com/fluffynuts/patch-jest-cache
Last synced: 5 days ago
JSON representation
patches jest cache behavior to suck less
- Host: GitHub
- URL: https://github.com/fluffynuts/patch-jest-cache
- Owner: fluffynuts
- License: bsd-3-clause
- Created: 2021-05-21T14:53:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T07:27:47.000Z (almost 2 years ago)
- Last Synced: 2024-12-13T21:42:47.420Z (30 days ago)
- Language: TypeScript
- Homepage:
- Size: 693 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
patch-jest-cache
---
patches jest caching to work around an issue outstanding since 2017
[cache write race condition across processes ](https://github.com/facebook/jest/issues/4444)- make caching opportunistic: if it works, great, if it fails, c'est la vie!
- caching should be to improve performance, _not_ a lynchpin
- facilitate complete disable of read and/or write cache
- because jest writes out cache files even when invoked with `--no-cache`,
wasting time on I/O for files that won't be used
usage
---```
npx patch-jest-cache {options}
```- default behavior patches cache reading and writing to only warn on error
- specify `--no-warn-on-errors` to suppress warning messages
- specify `--disable-read-cache` or `--disable-write-cache` to completely
disable cache read / writereverting
---either run `npx patch-jest-cache --revert` or re-install your node_modules, eg
with `npm ci`