fix: constrain PWA caching and extend font CSP
Quality / quality (ubuntu-latest) (push) Failing after 22s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-03 00:38:23 +05:30
parent b3e9b99e13
commit 649e3d9127
4 changed files with 47 additions and 3 deletions
+7
View File
@@ -17,6 +17,13 @@ describe("PWA platform", () => {
const source = generateServiceWorker({ offlineUrl: "/offline", cacheUrls: ["/app.css"] });
expect(source).toContain("wrnexus:background-sync");
expect(source).toContain("notificationclick");
expect(source).toContain("const SAME_ORIGIN_ONLY=true");
expect(source).toContain("new URL(event.request.url).origin!==self.location.origin");
expect(
generateServiceWorker({
runtimeCaching: [{ pattern: "^https://cdn.example.com/", strategy: "cache-first" }],
}),
).toContain("const SAME_ORIGIN_ONLY=false");
expect(pwaClientRuntime()).toContain("wrnexus:pwa-installable");
});
test("queues, retries and removes successful mutations", async () => {