Skip to content

Commit feac30a

Browse files
committed
test(service-automation): alias @objectstack/metadata-protocol to source for the package's tests
check:test-source-alias refuses a new unaliased artifact import; the family-serve pins and their data door control are judged against the source in the checkout. Claude-Session: https://claude.ai/code/session_01DiCSbmJrkzNhuEAier4VoJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent ccd620a commit feac30a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎packages/services/service-automation/vitest.config.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ export default defineConfig({
6060
find: /^@objectstack\/types$/,
6161
replacement: path.resolve(__dirname, '../../types/src/index.ts'),
6262
},
63+
{
64+
// [#21519] `crud-nodes.ts` serves a `get_record` read of the
65+
// stored-metadata family through the data door's own functions, which
66+
// `@objectstack/metadata-protocol` exports, and
67+
// `get-record-stored-metadata-family.integration.test.ts` judges the
68+
// node against that package's data door. Unaliased, the workspace link
69+
// resolves to `dist/`, so the verdict on both the serve and its control
70+
// would depend on build state rather than on the source in this
71+
// checkout. Same anchored-regex rule as the entries above.
72+
find: /^@objectstack\/metadata-protocol$/,
73+
replacement: path.resolve(__dirname, '../../metadata-protocol/src/index.ts'),
74+
},
6375
],
6476
},
6577
});

0 commit comments

Comments
 (0)