Skip to content

Commit 5517166

Browse files
committed
test(cli): alias @objectstack/metadata-core/testing to source for the flow-cycle corpus
check:test-source-alias names the new subpath import; the corpus the CLI tests read is the checkout's, not a stale dist/testing.js. Claude-Session: https://claude.ai/code/session_01ADHkmSGEsjUPQp4S968p2X Co-authored-by: Claude <noreply@anthropic.com>
1 parent 241763a commit 5517166

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎packages/cli/vitest.config.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,19 @@ export default defineConfig({
875875
find: /^create-objectstack\/created-summary$/,
876876
replacement: path.resolve(__dirname, '../create-objectstack/src/created-summary.ts'),
877877
},
878+
// [#29051] `FLOW_CYCLE_CORPUS`, the case table the flow-cycle judge, the
879+
// engine's registration and the publish gate are driven from, pins
880+
// `os validate` / `os build` to the same graphs
881+
// (`src/utils/flow-region-shape.test.ts`,
882+
// `test/validate-flow-region-shape.test.ts`). The subpath's `exports`
883+
// entry is built from `src/testing.ts`; aliased so the corpus the tests
884+
// read is the checkout's, not a stale `dist/testing.js`. The bare
885+
// `@objectstack/metadata-core` specifier is NOT aliased here: it stays in
886+
// this package's measured ledger entry, unchanged.
887+
{
888+
find: /^@objectstack\/metadata-core\/testing$/,
889+
replacement: path.resolve(__dirname, '../metadata-core/src/testing.ts'),
890+
},
878891
// `test/serve-node-env-production-default.e2e.test.ts` (#11113) writes a
879892
// FIXTURE config file whose text is `import { AuthPlugin } from
880893
// '@objectstack/plugin-auth'` — real code, but code the fixture's own

0 commit comments

Comments
 (0)