Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/testing-library/react-hooks-testing-library
/ useContext.test.tsx
File
useContext.test.tsx
src/__tests__/useContext.test.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import React, { createContext, useContext } from
'react'
2
3
describe(
'useContext tests'
, () => {
4
runForRenderers([
'default'
,
'dom'
,
'native'
,
'server/hydrated'
], ({ renderHook }) => {
Callers
nothing calls this directly
Calls
2
renderHook
Function · 0.50
rerender
Function · 0.50
Tested by
no test coverage detected