README Source History Refs Reviews Compare Notes Search Review guide CI runs test: make browser and coverage gates truthful 419c94faba11ddf67aaaf9612582d9254cac5801
Oliver Jan Krylow <oliver@bugabinga.net > · 14 Sep 2026
SSH signature · not checked
Browse files Compare 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) Diff layout Auto Unified Split
coverage-ratchet.json Modified +2 / −2 text lines
3 - "updatedAt" : "2026-09-13T04:04:47.630Z" ,3 + "updatedAt" : "2026-09-14T10:54:37.456Z" ,4 4 "note" : "ratchet only rises; commit the raise with the change that caused it" "note" : "ratchet only rises; commit the raise with the change that caused it" +3 / −3 text lines
12 12 "check" : "biome check src scripts web deploy rolldown.config.ts playwright.config.ts package.json tsconfig.json && tsc --noEmit" , "check" : "biome check src scripts web deploy rolldown.config.ts playwright.config.ts package.json tsconfig.json && tsc --noEmit" ,13 13 "format" : "biome format --write src scripts web deploy rolldown.config.ts playwright.config.ts" , "format" : "biome format --write src scripts web deploy rolldown.config.ts playwright.config.ts" ,14 14 "build" : "rolldown -c rolldown.config.ts && node scripts/copy-web.mjs && node scripts/render-docs.mjs" , "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" ,16 16 "test:unit" : "node --test \"src/**/*.test.ts\"" , "test:unit" : "node --test \"src/**/*.test.ts\"" ,17 17 "test:integration" : "node --test \"src/**/*.int.test.ts\"" , "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" ,20 20 "canary" : "node --experimental-strip-types scripts/zai-canary.ts" "canary" : "node --experimental-strip-types scripts/zai-canary.ts" 22 22 "dependencies" : { "dependencies" : {web/tests/phenotype.spec.ts Modified +7 / −3 text lines
29 29 await new Promise <void >((res) => probe.listen (0 , '127.0.0.1' , () => res ())) await new Promise <void >((res) => probe.listen (0 , '127.0.0.1' , () => res ()))30 30 port = (probe.address () as { port: number }).port port = (probe.address () as { port: number }).port 31 31 await new Promise <void >((res) => probe.close (() => res ())) await new Promise <void >((res) => probe.close (() => res ()))32 - service = spawn ( process . execPath , ['--experimental-strip-types' , join (here, '..' , 'src' , 'service' , 'main.ts' )], { 34 + ['--experimental-strip-types' , join (here, '..' , '.. ' , ' src' , 'service' , 'main.ts' )],34 37 ... process .env , ... process .env ,35 38 WILL_SERVICE_DATA_DIR: dataDir, WILL_SERVICE_DATA_DIR: dataDir,38 41 WILL_SERVICE_WEB_DIST : repoWebDist, WILL_SERVICE_WEB_DIST : repoWebDist,39 42 WILL_SERVICE_DOCS_DIST : repoDocsDist, WILL_SERVICE_DOCS_DIST : repoDocsDist,43 47 const deadline = Date .now () + 15_000 const deadline = Date .now () + 15_000 44 48 for (;;) { for (;;) {