Skip to content

Commit 3d70288

Browse files
committed
Provide media query API in profile app test fixture
Signed-off-by: tulsi <[email protected]>
1 parent 67ed94b commit 3d70288

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/app/App.profile.test.tsx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ afterEach(async () => {
7474
});
7575

7676
async function setup(connectionError = false) {
77+
// jsdom has no media queries; responsive shell geometry is covered in browsers.
78+
vi.stubGlobal("matchMedia", (media: string) => ({
79+
media,
80+
matches: false,
81+
addEventListener() {},
82+
removeEventListener() {},
83+
}));
7784
vi.stubGlobal(
7885
"ResizeObserver",
7986
class {

0 commit comments

Comments
 (0)