diff --git a/src/hooks/useDarkMode.js b/src/hooks/useDarkMode.js index 8bff3dd..c8cbb4e 100644 --- a/src/hooks/useDarkMode.js +++ b/src/hooks/useDarkMode.js @@ -39,7 +39,7 @@ export default function useDarkMode() { }, []) useEffect(() => { - if (!isClient) return + if (!isClient || process.env.NODE_ENV === 'test') return const darkModeQuery = window.matchMedia('(prefers-color-scheme: dark)')