Skip to content

Commit 559206b

Browse files
os-zhuangclaude
andauthored
test(driver-turso): drop the dead as never on date-bucket-parity's create options gate (#6394) (#6757)
`date-bucket-parity.test.ts` passed `{ bypassTenantAudit: true } as never` to `driver.create`. `bypassTenantAudit` is a declared key on `DriverOptionsSchema` (packages/spec/src/data/driver.zod.ts), so the cast was never needed: `@objectstack/driver-turso` typechecks clean without it (verified after building the package's full dependency closure, so the verdict is not read off stale `dist/*.d.ts`). This is the last `as never` in the file — #6354 removed the ones on the `checkDateBucketParity(...)` stand-in call sites; this one sat on a different gate (`driver.create`'s options parameter) and was recorded separately under PD #10 rather than widening that PR's diff. Scope note: removing the cast does NOT restore compile-time checking at this call site. `TursoDriver` overrides `create` (and eight sibling methods) with `options?: any`, so a misspelled key or a wrong-typed value still compiles either way — measured, not assumed. Filed separately; this commit only removes noise that reads as a needed escape hatch. Tests-only change, no changeset. Claude-Session: https://claude.ai/code/session_015g3eCfHF7Wrtyq2qRahmP8 Co-authored-by: Claude <noreply@anthropic.com>
1 parent fa2d3b7 commit 559206b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/drivers/driver-turso/src/date-bucket-parity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('TursoDriver date-bucket parity (framework#3773)', () => {
6565
await driver.create(
6666
'bucket_storage_probe',
6767
{ id: 'p1', at: new Date('2026-01-10T09:00:00Z') },
68-
{ bypassTenantAudit: true } as never,
68+
{ bypassTenantAudit: true },
6969
);
7070
const res: any = await driver.execute(
7171
`SELECT typeof("at") AS t FROM "bucket_storage_probe" WHERE id = 'p1'`,

0 commit comments

Comments
 (0)