mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-17 05:43:36 +00:00
chore: root cleanup
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import { afterEach, vi } from "vitest";
|
||||
|
||||
// jsdom does not implement matchMedia; provide a minimal stub so hooks that
|
||||
// read media queries (e.g. useIsMobile) can run. Individual tests override
|
||||
// window.innerWidth / matchMedia as needed.
|
||||
if (typeof window !== "undefined" && !window.matchMedia) {
|
||||
window.matchMedia = vi.fn().mockImplementation((query: string) => ({
|
||||
matches: false,
|
||||
|
||||
Reference in New Issue
Block a user