tangled
alpha
login
or
join now
tylur.dev
/
prototypey
prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork
atom
overview
issues
pulls
pipelines
fix ui tests
Tyler
3 months ago
a04e5931
83ff699a
+14
1 changed file
expand all
collapse all
unified
split
packages
site
tests
setup.ts
+14
packages/site/tests/setup.ts
···
22
22
(global as any).MonacoEnvironment = {
23
23
getWorker: () => ({}) as any,
24
24
};
25
25
+
26
26
+
Object.defineProperty(window, "matchMedia", {
27
27
+
writable: true,
28
28
+
value: vi.fn().mockImplementation((query) => ({
29
29
+
matches: false,
30
30
+
media: query,
31
31
+
onchange: null,
32
32
+
addListener: vi.fn(),
33
33
+
removeListener: vi.fn(),
34
34
+
addEventListener: vi.fn(),
35
35
+
removeEventListener: vi.fn(),
36
36
+
dispatchEvent: vi.fn(),
37
37
+
})),
38
38
+
});