-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support new Cache API #7365
Comments
This is a request to |
There is https://github.com/theneva/jest-environment-jsdom-twelve and https://github.com/theneva/jest-environment-jsdom-thirteen which are updated |
Oh man, I was looking for |
npm apparently refused the digits one as their algorithms picked it up as spam packages... |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🚀 Feature Proposal
Support the Cache API in the same way localStorage is supported. One of the ways to access it would be
window.caches
.Note: this is an experimental API but I think right now would be a good moment to start review and prepare the changes to support it.
Motivation
Be able to test classes using the Cache API without have to mock all methods.
Example
Code to be tested:
Test:
Right now if I try to run this test the error that I receive is:
Pitch
ServiceWorks usage has increased and this feature will help everyone who are looking to test their online/offline api calls...
The text was updated successfully, but these errors were encountered: