Skip to content

Commit 1c87cc4

Browse files
committed
Fix Zoodle runtime extension lint
1 parent c914903 commit 1c87cc4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/components/MlEphantConversation.spec.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import {
88
} from '@testing-library/react'
99
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
1010

11-
const bootMockState = vi.hoisted(() => ({
12-
registry: undefined as unknown,
11+
const bootMockState = vi.hoisted<{
12+
registry: Registry | undefined
13+
}>(() => ({
14+
registry: undefined,
1315
}))
1416

1517
// Mock modules that access localStorage at import time
@@ -28,10 +30,6 @@ vi.mock('@src/lib/desktop', () => ({
2830
// Mock useSingletons which requires heavy initialization
2931
vi.mock('@src/lib/boot', () => ({
3032
useApp: () => {
31-
if (!bootMockState.registry) {
32-
throw new Error('Test registry has not been configured')
33-
}
34-
3533
return { registry: bootMockState.registry }
3634
},
3735
useSingletons: () => ({

src/components/ViewportAnnotationOverlay.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ export const ViewportAnnotationOverlay = (
186186

187187
return (
188188
<div
189+
role="presentation"
189190
data-testid="viewport-annotation-overlay"
190191
className="absolute inset-0 z-50 bg-chalkboard-100"
191192
onPointerDown={stopOverlayEventPropagation}

0 commit comments

Comments
 (0)