mirror of
https://github.com/Komediruzecki/token-circles.git
synced 2026-10-20 09:46:43 +02:00
The manifest declared four `any` icons and no screenshots, so Chrome's install dialog fell back to a name, an icon and a URL — and Android, given nothing maskable, did not mask ours: it shrank the whole square into a white circle, which is the small dark tile in a white ring on the home screen. The maskable master is the same artwork with a full-bleed background and scale(0.8) on the content, so all of it clears the 80% safe circle; without that a circular mask clips the orange marker, which reaches 207px from the centre of a 512 canvas against a 204.8px safe radius. Six screenshots, wide and narrow, re-shootable with `npm run pwa:shots` against the same two servers and the same seeded fixture the e2e suite uses. The manifest moved into src/pwaManifest.ts so a test can read the PNG headers back off disk and check them against the declared sizes. Everything here fails silently in a browser and never reaches a build log — which is how the test found that icon-192.svg, declared 192x192, is a byte-identical copy of icon-512.svg drawing a 512 canvas. Collapsed to one `sizes: 'any'` entry.
12 lines
527 B
JSON
12 lines
527 B
JSON
{
|
|
// Same reasoning as tests/tsconfig.json: this directory runs in Node (it writes PNGs into
|
|
// public/), so it gets node types the app deliberately does not. Separate from tests/ because
|
|
// the two have different configs and different entry points, and ESLint's project service
|
|
// resolves a file's config by walking up from its directory.
|
|
"extends": "../tsconfig.json",
|
|
"compilerOptions": {
|
|
"types": ["vite/client", "node"]
|
|
},
|
|
"include": ["**/*", "../playwright.shots.config.ts", "../css-modules.d.ts"]
|
|
}
|