We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b342218 commit 36df344Copy full SHA for 36df344
browser-extension/tests/har-fixture.ts
@@ -1,5 +1,12 @@
1
import { vi } from 'vitest'
2
3
+// Mock MutationObserver for tests
4
+global.MutationObserver = vi.fn().mockImplementation(() => ({
5
+ disconnect: vi.fn(),
6
+ observe: vi.fn(),
7
+ takeRecords: vi.fn(() => []),
8
+}))
9
+
10
// Mock the OverType editor component
11
vi.mock('overtype', () => {
12
const mockConstructor = vi.fn().mockImplementation(() => [
@@ -15,6 +22,7 @@ vi.mock('overtype', () => {
15
22
},
16
23
])
17
24
;(mockConstructor as any).setCodeHighlighter = vi.fn()
25
+ ;(mockConstructor as any).setTheme = vi.fn()
18
26
return {
19
27
default: mockConstructor,
20
28
}
0 commit comments