Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ usePreferredColorScheme.test.tsx
File
usePreferredColorScheme.test.tsx
site/src/theme/usePreferredColorScheme.test.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import { act, renderHook } from
"@testing-library/react"
;
2
import { renderToString } from
"react-dom/server"
;
3
import { usePreferredColorScheme } from
"./usePreferredColorScheme"
;
4
Callers
nothing calls this directly
Calls
3
usePreferredColorScheme
Function · 0.90
stubMatchMedia
Function · 0.85
find
Method · 0.80
Tested by
no test coverage detected