Skip to content

Commit 820bf5d

Browse files
committed
test(trigger-record-change): cast the registry to the file's own test seam
`objectql.registry` is typed `EngineSchemaRegistryView` here, which declares no `registerObject`; the file already carries a structural `TestObjectRegistry` for exactly that and casts to it two lines up. tsc --noEmit TS2339, fixed by using the same cast. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01URLHobLUJB9K1ABV6ofdjj
1 parent 1303a04 commit 820bf5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/triggers/trigger-record-change/src/before-update-flow-payload-reach.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ describe('[#15356/#14744] S5 on the real SQL driver — the mutation reaches no
894894
// [#17985] The authz resolver's own reads, registered before the sync so
895895
// they are provisioned rather than refused.
896896
for (const o of authzResolverObjects) {
897-
objectql.registry.registerObject(o.def as never, o.owner);
897+
(objectql.registry as unknown as TestObjectRegistry).registerObject(o.def as never, o.owner);
898898
}
899899
await objectql.syncSchemas();
900900

0 commit comments

Comments
 (0)