Skip to content

Commit bb15e5f

Browse files
committed
test(metadata-protocol): type the queryDataset spy's arguments
Claude-Session: https://claude.ai/code/session_01CxBKycaiUpA1yGx1XyoGqX Co-authored-by: Claude <noreply@anthropic.com>
1 parent 861e41f commit bb15e5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/metadata-protocol/src/build-probes-caller-context.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function engineVisibleToSystemOnly(): ProbeEngine & { contexts: unknown[] } {
4141
describe('runBuildProbes — the widget plane reads as the caller (#25484)', () => {
4242
it('hands queryDataset the caller context and counts the rows that caller sees', async () => {
4343
const engine = engineVisibleToSystemOnly();
44-
const analytics = { queryDataset: vi.fn(async () => ({ rows: [] })) };
44+
const analytics = { queryDataset: vi.fn(async (..._args: unknown[]) => ({ rows: [] })) };
4545
const report = await runBuildProbes({
4646
engine, getItem, analytics, context: CALLER,
4747
published: [{ type: 'dashboard', name: 'board' }],
@@ -56,7 +56,7 @@ describe('runBuildProbes — the widget plane reads as the caller (#25484)', ()
5656

5757
it('with no context: a context-less query and a system count, as before', async () => {
5858
const engine = engineVisibleToSystemOnly();
59-
const analytics = { queryDataset: vi.fn(async () => ({ rows: [] })) };
59+
const analytics = { queryDataset: vi.fn(async (..._args: unknown[]) => ({ rows: [] })) };
6060
const report = await runBuildProbes({
6161
engine, getItem, analytics,
6262
published: [{ type: 'dashboard', name: 'board' }],

0 commit comments

Comments
 (0)