{"file":"scripts/check-changed.test.ts","version":318,"total":40,"from":1,"to":40,"lines":[{"n":1,"text":"// check:changed's plan: what a change reaches, on this repo as it is.","atom":"a811","author":"speed","version":97},{"n":2,"text":"","atom":"a811","author":"speed","version":97},{"n":3,"text":"import assert from \"node:assert/strict\";","atom":"a811","author":"speed","version":97},{"n":4,"text":"import { test } from \"node:test\";","atom":"a811","author":"speed","version":97},{"n":5,"text":"// @ts-expect-error: a plain .mjs script, no types","atom":"a811","author":"speed","version":97},{"n":6,"text":"import { plan } from \"./check-changed.mjs\";","atom":"a811","author":"speed","version":97},{"n":7,"text":"","atom":"a811","author":"speed","version":97},{"n":8,"text":"test(\"a changed source file brings in the test files that import it, through other files, and the typecheck\", () => {","atom":"a811","author":"speed","version":97},{"n":9,"text":"\tconst p = plan([\"src/engine/text.ts\"]);","atom":"a816","author":"speed","version":97},{"n":10,"text":"\tassert.equal(p.full, undefined);","atom":"a811","author":"speed","version":97},{"n":11,"text":"\tconst files: string[] = p.tests[0].files;","atom":"a811","author":"speed","version":97},{"n":12,"text":"\tassert.ok(files.length > 0);","atom":"a811","author":"speed","version":97},{"n":13,"text":"\tassert.ok(files.every((f) => f.endsWith(\".test.ts\")));","atom":"a811","author":"speed","version":97},{"n":14,"text":"\tassert.ok(!files.includes(\"scripts/check-changed.test.ts\"), \"a test that doesn't reach the file stays out\");","atom":"a811","author":"speed","version":97},{"n":15,"text":"\tassert.deepEqual(","atom":"a811","author":"speed","version":97},{"n":16,"text":"\t\tp.typechecks.map((c: { tsconfig: string }) => c.tsconfig),","atom":"a811","author":"speed","version":97},{"n":17,"text":"\t\t[\"tsconfig.json\", \"server/tsconfig.json\"],","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":18,"text":"\t);","atom":"a811","author":"speed","version":97},{"n":19,"text":"\tassert.deepEqual(p.lint, [\"src/engine/text.ts\"]);","atom":"a816","author":"speed","version":97},{"n":20,"text":"});","atom":"a811","author":"speed","version":97},{"n":21,"text":"","atom":"a811","author":"speed","version":97},{"n":22,"text":"test(\"a changed test file runs itself\", () => {","atom":"a811","author":"speed","version":97},{"n":23,"text":"\tconst p = plan([\"scripts/check-changed.test.ts\"]);","atom":"a811","author":"speed","version":97},{"n":24,"text":"\tassert.deepEqual(","atom":"a811","author":"speed","version":97},{"n":25,"text":"\t\tp.tests.map((t: { files: string[] }) => t.files),","atom":"a811","author":"speed","version":97},{"n":26,"text":"\t\t[[\"scripts/check-changed.test.ts\"]],","atom":"a811","author":"speed","version":97},{"n":27,"text":"\t);","atom":"a811","author":"speed","version":97},{"n":28,"text":"\tassert.deepEqual(p.typechecks, [], \"tsconfig.json doesn't include scripts/\");","atom":"a811","author":"speed","version":97},{"n":29,"text":"});","atom":"a811","author":"speed","version":97},{"n":30,"text":"","atom":"a811","author":"speed","version":97},{"n":31,"text":"test(\"a change to setup runs the full check\", () => {","atom":"a811","author":"speed","version":97},{"n":32,"text":"\tassert.deepEqual(plan([\"src/engine/text.ts\", \"package.json\"]).full, [\"package.json\"]);","atom":"a816","author":"speed","version":97},{"n":33,"text":"\tassert.deepEqual(plan([\"tsconfig.json\"]).full, [\"tsconfig.json\"]);","atom":"a811","author":"speed","version":97},{"n":34,"text":"});","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":35,"text":"","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":36,"text":"test(\"server changes include their tests and worker types\", () => {","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":37,"text":"\tconst p = plan([\"server/src/engine-project.ts\"]);","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":38,"text":"\tassert.ok(p.tests.flatMap((t: { files: string[] }) => t.files).includes(\"server/test/engine-project.test.ts\"));","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":39,"text":"\tassert.ok(p.typechecks.some((c: { tsconfig: string }) => c.tsconfig === \"server/tsconfig.json\"));","atom":"a1586","author":"codex-capacity-chair","version":157},{"n":40,"text":"});","atom":"a811","author":"speed","version":97}],"atoms":[{"atom":"a811","author":"speed","message":"","time":1791642876346,"timeIso":"2026-10-10T14:34:36.346Z","publish":{"draft":null,"version":97,"agent":"speed","message":"npm run check:changed: runs the tests that import the changed files, the typecheck when it reaches them and biome on them, for running by hand before a publish; setup changes run the full check. README says to use it instead of the full check by hand. The merge queue's check is unchanged, plus the script's own tests.","time":1791643274731,"timeIso":"2026-10-10T14:41:14.731Z"}},{"atom":"a816","author":"speed","message":"","time":1791643054861,"timeIso":"2026-10-10T14:37:34.861Z","publish":{"draft":null,"version":97,"agent":"speed","message":"npm run check:changed: runs the tests that import the changed files, the typecheck when it reaches them and biome on them, for running by hand before a publish; setup changes run the full check. README says to use it instead of the full check by hand. The merge queue's check is unchanged, plus the script's own tests.","time":1791643274731,"timeIso":"2026-10-10T14:41:14.731Z"}},{"atom":"a1586","author":"codex-capacity-chair","message":"","time":1791914812558,"timeIso":"2026-10-13T18:06:52.558Z","publish":{"draft":null,"version":157,"agent":"codex-capacity-chair","message":"Share the SQLite writer and projection host with the open server","time":1791915928641,"timeIso":"2026-10-13T18:25:28.641Z"}}]}