mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore(site): clean up mocks after each test (#12805)
This commit is contained in:
@ -29,4 +29,16 @@ Object.defineProperties(globalThis, {
|
||||
FormData: { value: FormData },
|
||||
Request: { value: Request },
|
||||
Response: { value: Response },
|
||||
matchMedia: {
|
||||
value: (query) => ({
|
||||
matches: false,
|
||||
media: query,
|
||||
onchange: null,
|
||||
addListener: jest.fn(),
|
||||
removeListener: jest.fn(),
|
||||
addEventListener: jest.fn(),
|
||||
removeEventListener: jest.fn(),
|
||||
dispatchEvent: jest.fn(),
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user