()
| 160 | |
| 161 | test('updates CSS Custom Properties on root element', async () => { |
| 162 | const DarkModeButton = () => { |
| 163 | const { colorMode, setColorMode } = useThemeUI() |
| 164 | |
| 165 | if (colorMode === 'dark') return null |
| 166 | |
| 167 | return <button onClick={() => setColorMode!('dark')}>Dark Mode</button> |
| 168 | } |
| 169 | |
| 170 | const root = render( |
| 171 | <ThemeUIProvider |
nothing calls this directly
no test coverage detected
searching dependent graphs…