Skip to content

Commit 763d735

Browse files
committed
test(trigger-api): resolve @objectstack/spec/automation to source in the package's tests
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzeeFznzXxc61VmVH12
1 parent 0b82ff3 commit 763d735

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎packages/triggers/trigger-api/vitest.config.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ export default defineConfig({
3636
find: /^@objectstack\/core$/,
3737
replacement: path.resolve(__dirname, '../../core/src/index.ts'),
3838
},
39+
// `start()` reads each hook's one verifier with @objectstack/spec's
40+
// `apiTriggerVerifierOf`, the reader the engine and the lint share, and
41+
// the declared-signature pins judge what it answers. The same reason:
42+
// without this entry those pins read spec's `dist/`, not its source.
43+
{
44+
find: /^@objectstack\/spec\/automation$/,
45+
replacement: path.resolve(__dirname, '../../spec/src/automation/index.ts'),
46+
},
3947
],
4048
},
4149
});

0 commit comments

Comments
 (0)