Skip to content

Commit fef4118

Browse files
committed
fix(metadata): drop a wrong destructuring annotation in the loader fixtures
`mock.calls` is `any[][]`, so `([sql]: [unknown])` is not assignable to the callback `some`/`map` expect. Two errors, both mine, both caught by `check:type-check-debt` re-measuring @objectstack/metadata at 91 against a shrink-only ledger recording 89. Back to 89 with the annotations removed; the parameter is inferred as `any[]` and carries no implicit-any. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F3jdziLbAPGeceVNmSox5L
1 parent e489ea9 commit fef4118

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/metadata/src/loaders/database-loader.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ describe('DatabaseLoader schema-sync failure reporting (#4728)', () => {
638638
// probes the column list before touching anything.
639639
expect(execute).toHaveBeenCalled();
640640
expect(
641-
execute.mock.calls.some(([sql]: [unknown]) => /table_info|information_schema/i.test(String(sql))),
641+
execute.mock.calls.some(([sql]) => /table_info|information_schema/i.test(String(sql))),
642642
).toBe(true);
643643
});
644644

@@ -665,7 +665,7 @@ describe('DatabaseLoader schema-sync failure reporting (#4728)', () => {
665665
// reading anything into the absence of that one statement.
666666
expect(execute, 'nothing ran — the emptiness below would prove nothing').toHaveBeenCalled();
667667
const overlayDdl = execute.mock.calls
668-
.map(([sql]: [unknown]) => String(sql))
668+
.map(([sql]) => String(sql))
669669
.filter((sql: string) => /idx_sys_metadata_overlay_active/i.test(sql));
670670
expect(overlayDdl).toEqual([]);
671671
});

0 commit comments

Comments
 (0)