chore: fix eslint errors introduced across phases 1-3

This commit is contained in:
Gabriel Brown
2026-07-11 13:27:23 -04:00
parent 12b1c98cfc
commit a5bc0434f3
9 changed files with 26 additions and 29 deletions
@@ -13,11 +13,11 @@ const {
writeTextSpy,
} = vi.hoisted(() => ({
openSpy: vi.fn(),
wsInstances: [] as Array<{
wsInstances: [] as {
url: string;
send: ReturnType<typeof vi.fn>;
close: ReturnType<typeof vi.fn>;
}>,
}[],
fetchSpy: vi.fn(),
fitSpy: vi.fn(),
selectionHandlers: [] as (() => void)[],
@@ -110,17 +110,23 @@ beforeEach(() => {
fetchSpy.mockResolvedValue({
ok: true,
status: 200,
json: async () => ({ url: 'ws://x' }),
text: async () => '',
json: () => Promise.resolve({ url: 'ws://x' }),
text: () => Promise.resolve(''),
});
vi.stubGlobal('WebSocket', FakeWebSocket);
vi.stubGlobal('fetch', fetchSpy);
vi.stubGlobal(
'ResizeObserver',
class {
observe() {}
disconnect() {}
unobserve() {}
observe() {
/* noop */
}
disconnect() {
/* noop */
}
unobserve() {
/* noop */
}
},
);
Object.defineProperty(document, 'fonts', {