MCPcopy
hub / github.com/callstack/react-native-testing-library / makeDebug

Function makeDebug

src/render.tsx:114–124  ·  view source on GitHub ↗
(renderer: Root)

Source from the content-addressed store, hash-verified

112export type DebugFunction = (options?: DebugOptions) => void;
113
114function makeDebug(renderer: Root): DebugFunction {
115 function debugImpl(options?: DebugOptions) {
116 const { defaultDebugOptions } = getConfig();
117 const debugOptions = { ...defaultDebugOptions, ...options };
118 const json = renderer.container.toJSON();
119 if (json) {
120 return debug(json, debugOptions);
121 }
122 }
123 return debugImpl;
124}
125
126type StyleLike = Record<string, unknown>;
127

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…