Skip to content

Commit

Permalink
remove accidental pickup from other branch
Browse files Browse the repository at this point in the history
  • Loading branch information
anyoussefinia committed Oct 4, 2024
1 parent 8e507b4 commit d12a4ac
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions services/ui-src/src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,4 @@ jest.mock("focus-trap", () => {
unpause: () => {},
};
return () => trap;
});

window.matchMedia = jest.fn((query) => {
return {
matches: query === '(max-width: 600px)', // Adjust this logic based on your needs
media: query,
onchange: null,
addListener: jest.fn(), // Deprecated, but still mock for compatibility
removeListener: jest.fn(), // Deprecated, but still mock for compatibility
addEventListener: jest.fn(), // For modern browsers
removeEventListener: jest.fn(), // For modern browsers
dispatchEvent: jest.fn(), // For modern browsers
};
});
console.log("Setup file loaded");
});

0 comments on commit d12a4ac

Please sign in to comment.