MCPcopy
hub / github.com/testing-library/react-testing-library / configure

Function configure

src/config.js:17–32  ·  view source on GitHub ↗
(newConfig)

Source from the content-addressed store, hash-verified

15}
16
17function configure(newConfig) {
18 if (typeof newConfig === 'function') {
19 // Pass the existing config out to the provided function
20 // and accept a delta in return
21 newConfig = newConfig(getConfig())
22 }
23
24 const {reactStrictMode, ...configForDTL} = newConfig
25
26 configureDTL(configForDTL)
27
28 configForRTL = {
29 ...configForRTL,
30 reactStrictMode,
31 }
32}
33
34export {getConfig, configure}

Callers 4

renderHook.jsFile · 0.85
rerender.jsFile · 0.85
config.jsFile · 0.85
render.jsFile · 0.85

Calls 1

getConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…