Repository navigation
Replies: 3 comments
|
Thanks for measuring this. You're right, and the numbers pointed us at the actual cause. Skipping jsdom won't help. The unit config already runs in
Workaround for now: run through
The cache is keyed on the lockfile, tsconfig and runner scripts, so it survives normal edits. Most small test files are already in your 0.3–5s range. What we're changing: we're going to split the runtime suite so each part loads on its own and the aggregator goes away. Then targeting one area won't pay for the other 145. We'll also document the cache in CONTRIBUTING's "Targeting Local Tests" section. |
|
If still an issue feel free to re-oepn |

Uh oh!
There was an error while loading. Please reload this page.
Contributor experience: startup cost when iterating on tests
I’d like to share a local development observation: for commands targeting a small number of tests, startup and loading time can sometimes far exceed the time spent running the tests themselves.
These are a few Windows runs using the repository’s Vitest configuration. They are examples, not a controlled benchmark, and the commands have different dependency scopes.
agent-launch-failure-code.test.tsplugin-host-methods.test.tsorca-runtime.test.ts, filtered to 4 casesIn one runtime test run, Vitest reported that about 86% of the time went to transform, about 13% to import, and about 1% to the tests themselves. This suggests that for some tests, preparing the test environment and loading dependencies can dominate even when only a few cases are selected.
I understand that the recent test-suite reductions and owner-based restructuring are already addressing maintenance costs. This post is meant to add the external-contributor perspective: is there a recommended fast iteration workflow, or a lightweight runner for logic-only tests?
For example, a Vitest config that skips jsdom and Electron setup could help with tests for parsers, state machines, and reducers that do not need a UI environment. If ongoing work already covers this, pointers would be welcome.
All reactions