Skip to content

Commit 7c8f07e

Browse files
committed
test(objectql): the afterFind pins pass typed read options, not a counted cast
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5
1 parent 4c4fc03 commit 7c8f07e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/objectql/src/engine-scoped-transaction-late-write.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ describe('#33760 — an async after-hook fired inside a unit runs on its commit,
621621
await engine.insert('rec', { name: 'r0' }, { context: { isSystem: true } });
622622
bind(false, { read: true });
623623
await engine.transaction(async (trx: any) => {
624-
await engine.find('rec', {}, { context: { ...trx, isSystem: true } } as any);
624+
await engine.find('rec', {}, { context: { ...trx, isSystem: true } });
625625
events.push(await startedInUnit(runOf('read')));
626626
});
627627
await runOf('read');
@@ -636,7 +636,7 @@ describe('#33760 — an async after-hook fired inside a unit runs on its commit,
636636
await engine.insert('rec', { name: 'r0' }, { context: { isSystem: true } });
637637
bind(false, { read: true });
638638
await expect(engine.transaction(async (trx: any) => {
639-
await engine.find('rec', {}, { context: { ...trx, isSystem: true } } as any);
639+
await engine.find('rec', {}, { context: { ...trx, isSystem: true } });
640640
events.push(await startedInUnit(runOf('read')));
641641
throw new Error('the caller rolls back');
642642
})).rejects.toThrow('the caller rolls back');

0 commit comments

Comments
 (0)