Skip to content

Commit 3813914

Browse files
committed
test(runtime): type the store probes' query options in the delete-version pins
The two `engine.findOne` probes carried an `as any` the query-options-erasure ratchet counts; the options type as written. Claude-Session: https://claude.ai/code/session_01Q9PZ5Pzqcus4woVvTZwWNU Co-authored-by: Claude <noreply@anthropic.com>
1 parent caeac16 commit 3813914

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/runtime/src/domains/data-delete-expected-version.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ async function bootStore() {
9292
await engine.syncSchemas();
9393
const protocol = new ObjectStackProtocolImplementation(engine as any);
9494
await protocol.createData({ object: 'task', data: { id: 'r1', name: 'first' } } as any);
95-
const row: any = await engine.findOne('task', { where: { id: 'r1' } } as any);
95+
const row: any = await engine.findOne('task', { where: { id: 'r1' } });
9696
const version = row?.updated_at instanceof Date ? row.updated_at.toISOString() : String(row?.updated_at ?? '');
9797
if (!version) throw new Error('the store minted no updated_at, so no version token exists to pin');
9898
const deleteData = vi.spyOn(protocol, 'deleteData');
9999
/** Is `r1` still in the store? */
100-
const present = async () => Boolean(await engine.findOne('task', { where: { id: 'r1' } } as any));
100+
const present = async () => Boolean(await engine.findOne('task', { where: { id: 'r1' } }));
101101
return { protocol, version, present, deleteData };
102102
}
103103

0 commit comments

Comments
 (0)