Skip to content

Commit 2165cdf

Browse files
committed
fix(telemetry): add startIdleTelemetryCheck stub to task-run-dispatch spec
1 parent 62fd94b commit 2165cdf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/__tests__/task-run-dispatch.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Runnable = {
1717
metadata: { task?: string | null; images?: string[] | null }
1818
resumeTaskFromHistory: () => Promise<void>
1919
startTask: (task?: string, images?: string[]) => Promise<void>
20+
startIdleTelemetryCheck: () => void
2021
}
2122

2223
function makeRunnable(overrides: Partial<Runnable> = {}): Runnable & { run(): Promise<void> } {
@@ -27,6 +28,7 @@ function makeRunnable(overrides: Partial<Runnable> = {}): Runnable & { run(): Pr
2728
metadata: { task: undefined, images: undefined },
2829
resumeTaskFromHistory: vi.fn().mockResolvedValue(undefined),
2930
startTask: vi.fn().mockResolvedValue(undefined),
31+
startIdleTelemetryCheck: vi.fn(),
3032
...overrides,
3133
}
3234
// Bind the real run() implementation from Task.prototype to our stand-in.

0 commit comments

Comments
 (0)