Mock CSS.supports in view tests
This commit is contained in:
@@ -15,6 +15,11 @@ Object.defineProperty(window, "matchMedia", {
|
||||
})),
|
||||
});
|
||||
|
||||
// Used by Primer React
|
||||
(window as any).CSS = {
|
||||
supports: jest.fn().mockResolvedValue(false),
|
||||
};
|
||||
|
||||
// Store this on the window so we can mock it
|
||||
(window as any).vsCodeApi = {
|
||||
postMessage: jest.fn(),
|
||||
|
||||
Reference in New Issue
Block a user