We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When triggering native SW events, they do not receive the event type.
service-workers/packages/service-worker-mock/utils/eventHandler.js
Lines 7 to 20 in 526ee36
This is breaking pre-caching from Workbox, which specifically asserts the install event's type.
function createEvent(event, args) { switch (event) { case 'fetch': return new FetchEvent('fetch', getFetchArguments(args)); case 'notificationclick': return new NotificationEvent(args); case 'push': return new PushEvent(args); case 'message': return new MessageEvent('message', args); default: return new ExtendableEvent(event, args); } }
The above seems to produce the expected behaviour.
I attempted to fork and do a PR, however I cannot get the tests to pass on a clean install. Any advice?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When triggering native SW events, they do not receive the event type.
service-workers/packages/service-worker-mock/utils/eventHandler.js
Lines 7 to 20 in 526ee36
This is breaking pre-caching from Workbox, which specifically asserts the install event's type.
The above seems to produce the expected behaviour.
I attempted to fork and do a PR, however I cannot get the tests to pass on a clean install. Any advice?
The text was updated successfully, but these errors were encountered: