feat(deploy): single-origin path-based deployment + project site #34
@@ -18,7 +18,10 @@ test.describe("PWA", () => {
|
||||
.get(href!)
|
||||
.then((r) => r.json());
|
||||
expect(manifest.name).toBe("Galaxy");
|
||||
expect(manifest.start_url).toBe("/");
|
||||
// Relative so the manifest is base-agnostic: served under the app
|
||||
// base (`/` at the root, `/game/` in the single-origin deploy) it
|
||||
// resolves to the app root either way.
|
||||
expect(manifest.start_url).toBe("./");
|
||||
expect(manifest.display).toBe("standalone");
|
||||
const sizes = (manifest.icons as { sizes: string }[]).map((i) => i.sizes);
|
||||
expect(sizes).toContain("192x192");
|
||||
|
||||
Reference in New Issue
Block a user