test(mobile): keep canvas fixture type-safe

This commit is contained in:
Neil
2026-09-18 22:22:07 -07:00
parent 7bbfceb5c0
commit d8c4288b60
@@ -34,7 +34,7 @@ it.each([false, true])(
vi.spyOn(HTMLCanvasElement.prototype, 'getContext').mockReturnValue({
font: '',
measureText: () => ({ width: 8 })
} as CanvasRenderingContext2D)
} as unknown as CanvasRenderingContext2D)
const Terminal: new (options: Record<string, unknown>) => BundledTerminal = new Script(
`${XTERM_ENGINE_JS}\nwindow.Terminal`
).runInThisContext()