openpencil/tools
Danila Poyarkov ae9f1e35a3
test: run each heavy unit test file in its own process (#899)
* test: run each heavy unit test file in its own process

`test:unit` and `test:unit:heavy` ran every file in one `bun test`
process. A heavy fixture file alone takes 2-6 GB, and what one file
keeps stays alive for the rest of the run. Quick files still share one
process; heavy files now run one per process, so the peak is the
heaviest single file. Coverage runs keep one process, since coverage is
collected per process.

stale-overrides parses material3.fig and joins the heavy list, and a
guard fails when a quick test reads a large fixture corpus.

* test(core): keep one material3 graph alive at a time in stale-overrides

The edited-document test held the exported reader graph, the reopened
graph, and the parsed node changes at once, and the first test's graph
was still alive when the second started. Each step now runs in its own
function and returns only what the next check needs, and the file
collects garbage between steps and tests. The checks are unchanged;
peak memory drops from 5.6 GB to 3.6 GB.
2026-10-05 14:13:53 +00:00
..
checks test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
ci fix(ci): install the review guidance tool's dependencies (#891) 2026-10-05 06:24:03 +00:00
dev test: run each heavy unit test file in its own process (#899) 2026-10-05 14:13:53 +00:00
generate chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00
release fix: validate parsed JSON at untrusted boundaries with Valibot (#855) 2026-10-04 17:01:50 +00:00
AGENTS.md chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00
package.json build: update dependencies (#873) 2026-10-04 12:48:24 +00:00
tsconfig.json fix(figma-api): validate effects like Figma (#794) 2026-09-30 21:18:20 +04:00