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

Function configure

src/config.ts:64–76  ·  view source on GitHub ↗
(newConfig: ConfigFn | Partial<Config>)

Source from the content-addressed store, hash-verified

62}
63
64export function configure(newConfig: ConfigFn | Partial<Config>) {
65 if (typeof newConfig === 'function') {
66 // Pass the existing config out to the provided function
67 // and accept a delta in return
68 newConfig = newConfig(config)
69 }
70
71 // Merge the incoming config delta
72 config = {
73 ...config,
74 ...newConfig,
75 }
76}
77
78export function getConfig() {
79 return config

Callers 8

wait-for.jsFile · 0.90
suggestions.jsFile · 0.90
role.jsFile · 0.90
query-helper.jsFile · 0.90
element-queries.jsFile · 0.90
config.jsFile · 0.90
get-by-errors.jsFile · 0.90
event-wrapper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected