repositories / will

will

owned by bugabinga

test: make browser and coverage gates truthful

419c94faba11ddf67aaaf9612582d9254cac5801

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Run Playwright instead of silently discovering zero tests, correct the service entry path, and scope coverage to project sources so external command wrappers cannot move the ratchet.

Changed files (4)

+14 / −8 text lines

Diff layout

.gitignore

Modified

+2 / −0 text lines

33web/dist/
44docs/dist/
55coverage/
6test-results/
7playwright-report/
68*.log
79.DS_Store
810.env

coverage-ratchet.json

Modified

+2 / −2 text lines

11{
2 "all": 90.9,
3 "updatedAt": "2026-09-13T04:04:47.630Z",
2 "all": 91.2,
3 "updatedAt": "2026-09-14T10:54:37.456Z",
44 "note": "ratchet only rises; commit the raise with the change that caused it"
55}

package.json

Modified

+3 / −3 text lines

1212 "check": "biome check src scripts web deploy rolldown.config.ts playwright.config.ts package.json tsconfig.json && tsc --noEmit",
1313 "format": "biome format --write src scripts web deploy rolldown.config.ts playwright.config.ts",
1414 "build": "rolldown -c rolldown.config.ts && node scripts/copy-web.mjs && node scripts/render-docs.mjs",
15 "test": "node --test src web/tests",
15 "test": "node --test src",
1616 "test:unit": "node --test \"src/**/*.test.ts\"",
1717 "test:integration": "node --test \"src/**/*.int.test.ts\"",
18 "test:browser": "node --test web/tests",
19 "coverage": "node --test --experimental-test-coverage \"src/**/*.test.ts\" \"src/**/*.int.test.ts\" 2>&1 | node scripts/coverage-ratchet.mjs",
18 "test:browser": "playwright test",
19 "coverage": "node --test --experimental-test-coverage --test-coverage-include='src/**/*.ts' \"src/**/*.test.ts\" \"src/**/*.int.test.ts\" 2>&1 | node scripts/coverage-ratchet.mjs",
2020 "canary": "node --experimental-strip-types scripts/zai-canary.ts"
2121 },
2222 "dependencies": {

web/tests/phenotype.spec.ts

Modified

+7 / −3 text lines

2929 await new Promise<void>((res) => probe.listen(0, '127.0.0.1', () => res()))
3030 port = (probe.address() as { port: number }).port
3131 await new Promise<void>((res) => probe.close(() => res()))
32 service = spawn(process.execPath, ['--experimental-strip-types', join(here, '..', 'src', 'service', 'main.ts')], {
32 service = spawn(
33 process.execPath,
34 ['--experimental-strip-types', join(here, '..', '..', 'src', 'service', 'main.ts')],
35 {
3336 env: {
3437 ...process.env,
3538 WILL_SERVICE_DATA_DIR: dataDir,
3841 WILL_SERVICE_WEB_DIST: repoWebDist,
3942 WILL_SERVICE_DOCS_DIST: repoDocsDist,
4043 },
41 stdio: 'ignore',
42 })
44 stdio: 'ignore',
45 },
46 )
4347 const deadline = Date.now() + 15_000
4448 for (;;) {
4549 try {