Skip to content

Commit ec70e1a

Browse files
committed
test(metadata-protocol): type the warn-call filters
Claude-Session: https://claude.ai/code/session_018HE4VY52U3L5Bfzz51dsFv Co-authored-by: Claude <noreply@anthropic.com>
1 parent 77ec41e commit ec70e1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/metadata-protocol/src/seed-loader-replay.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ describe('seed replay — a column declared applyOn: create is written on first
10091009

10101010
await load(engine, INSTALMENT, { columns: misspelt, logger });
10111011

1012-
const warnings = logger.warn.mock.calls.filter(([message]: [string]) => String(message).includes('stauts'));
1012+
const warnings = logger.warn.mock.calls.filter(([message]: any[]) => String(message).includes('stauts'));
10131013
expect(warnings).toHaveLength(2); // once per dataset per load
10141014
expect(warnings[0][1]).toMatchObject({ object: INSTALMENT.name, undeclaredColumns: ['stauts'] });
10151015
expect(rowOf(store, INSTALMENT, 'inst-1').status).toBe('pending');
@@ -1019,6 +1019,6 @@ describe('seed replay — a column declared applyOn: create is written on first
10191019
const { engine } = createFaithfulEngine();
10201020
const logger = createLogger();
10211021
await load(engine, INSTALMENT, { columns: { owner_id: { applyOn: 'create' } }, logger });
1022-
expect(logger.warn.mock.calls.filter(([, meta]: [string, any]) => meta?.undeclaredColumns)).toEqual([]);
1022+
expect(logger.warn.mock.calls.filter(([, meta]: any[]) => meta?.undeclaredColumns)).toEqual([]);
10231023
});
10241024
});

0 commit comments

Comments
 (0)