fix: update PWA workers without reloading pages
Quality / quality (ubuntu-latest) (push) Failing after 12m52s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-03 00:54:29 +05:30
parent 379f80cbd0
commit b61020babd
2 changed files with 7 additions and 13 deletions
@@ -6,8 +6,8 @@ test("PWA registration is valid JavaScript and Trusted Types compatible", () =>
expect(PWA_CLIENT).toContain('createPolicy("wrnexus-pwa"');
expect(PWA_CLIENT).toContain("createScriptURL(swUrl)");
expect(PWA_CLIENT).toContain('register(swUrl, { updateViaCache: "none" })');
expect(PWA_CLIENT).toContain("registration.update()");
expect(PWA_CLIENT).toContain('addEventListener("controllerchange"');
expect(PWA_CLIENT).toContain("requestIdleCallback");
expect(PWA_CLIENT).not.toContain("location.reload()");
});
test("development PWA cleanup removes stale WRNexus service workers and caches", () => {