MCPcopy Create free account
hub / github.com/primer/react / Component

Function Component

packages/react/src/__tests__/ThemeProvider.test.tsx:493–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491describe('useTheme().resolvedColorScheme', () => {
492 it('is undefined when not in a theme', () => {
493 const Component = () => {
494 const {resolvedColorScheme} = useTheme()
495
496 return <Text data-testid="text">{resolvedColorScheme}</Text>
497 }
498
499 render(<Component />)
500

Callers

nothing calls this directly

Calls 1

useThemeFunction · 0.85

Tested by

no test coverage detected