You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix(test-harness): one anchored rule for every @objectstack/spec subpath in nine vitest alias tables (#9703)
* fix(test-harness): one anchored rule for every `@objectstack/spec` subpath in the vitest alias tables (#9457)
`packages/runtime`'s vitest alias table enumerated twelve `@objectstack/spec`
subpaths by hand and had gone stale in three places — `cloud`, `integration`
and `studio` are published subpath exports with no entry. A string `find`
matches by PREFIX, so with a FILE replacement the bare `@objectstack/spec`
entry swallowed each of them and resolved it to `…/spec/src/index.ts/<sub>`:
`ENOTDIR`, at run time, from a config that reads as correct.
The one-line alias is not the fix; the hand-maintained population is the
defect. All nine enumerated configs are converted to the anchored-regex shape
`packages/qa/downstream-contract` (PR #8129), `service-knowledge`,
`service-settings` and `plugin-audit` already carry — one rule for every
namespace, which cannot go stale as tests reach new subpaths.
`packages/runtime/src/spec-subpath-alias-coverage.pin.test.ts` pins the RULE:
it derives the subpath population from spec's published `exports` map, so a
namespace this rule stops covering fails there rather than surfacing as an
`ENOTDIR` inside whichever plugin performed the import.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012WKSnqAaoqtW3QX7SSf1Vk
* test(runtime): give the subpath-coverage pin a timeout that outlives a cold Vite transform (#9457)
Measured in both directions: the fifteen namespace imports take ~5.3s on a
cold transform, against vitest's 5000ms default, so the case reported
`Test timed out in 5000ms` instead of the resolution failure it exists to
name. That is the points-at-the-wrong-thing diagnostic this card is about,
reproduced inside its own pin.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012WKSnqAaoqtW3QX7SSf1Vk
---------
Co-authored-by: os-zhuang <zhuangjianguo@steedos.com>
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments