fix: force PWA worker updates
Quality / quality (ubuntu-latest) (push) Failing after 12m26s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-03 00:46:52 +05:30
parent 649e3d9127
commit 379f80cbd0
2 changed files with 24 additions and 4 deletions
@@ -5,6 +5,9 @@ test("PWA registration is valid JavaScript and Trusted Types compatible", () =>
expect(() => new Bun.Transpiler({ loader: "js" }).transformSync(PWA_CLIENT)).not.toThrow();
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"');
});
test("development PWA cleanup removes stale WRNexus service workers and caches", () => {