Skip to content

Commit 319712c

Browse files
committed
.
1 parent 08e1f75 commit 319712c

File tree

2 files changed

+2
-57
lines changed

2 files changed

+2
-57
lines changed

src/__tests__/__snapshots__/render-debug.test.tsx.snap

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -295,61 +295,6 @@ exports[`debug: All Props 1`] = `
295295
undefined"
296296
`;
297297

298-
exports[`debug: Legacy message 1`] = `
299-
"my custom message
300-
301-
302-
<View>
303-
<Text>
304-
Is the banana fresh?
305-
</Text>
306-
<Text
307-
testID="bananaFresh"
308-
>
309-
not fresh
310-
</Text>
311-
<TextInput
312-
placeholder="Add custom freshness"
313-
testID="bananaCustomFreshness"
314-
value="Custom Freshie"
315-
/>
316-
<TextInput
317-
defaultValue="What did you inspect?"
318-
placeholder="Who inspected freshness?"
319-
testID="bananaChef"
320-
value="I inspected freshie"
321-
/>
322-
<TextInput
323-
defaultValue="What banana?"
324-
/>
325-
<TextInput
326-
defaultValue="hello"
327-
value=""
328-
/>
329-
<View
330-
accessible={true}
331-
role="button"
332-
>
333-
<Text>
334-
Change freshness!
335-
</Text>
336-
</View>
337-
<Text
338-
testID="duplicateText"
339-
>
340-
First Text
341-
</Text>
342-
<Text
343-
testID="duplicateText"
344-
>
345-
Second Text
346-
</Text>
347-
<Text>
348-
0
349-
</Text>
350-
</View>"
351-
`;
352-
353298
exports[`debug: Option message 1`] = `
354299
"another custom message
355300

src/render.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function buildRenderResult(
114114
unmount,
115115
rerender: update, // alias for `update`
116116
toJSON: renderer.toJSON,
117-
debug: makeDebug(instance, renderer),
117+
debug: makeDebug(renderer),
118118
get root(): ReactTestInstance {
119119
return getHostSelves(instance)[0];
120120
},
@@ -151,7 +151,7 @@ function updateWithAct(
151151

152152
export type DebugFunction = (options?: DebugOptions) => void;
153153

154-
function makeDebug(_instance: ReactTestInstance, renderer: ReactTestRenderer): DebugFunction {
154+
function makeDebug(renderer: ReactTestRenderer): DebugFunction {
155155
function debugImpl(options?: DebugOptions) {
156156
const { defaultDebugOptions } = getConfig();
157157
const debugOptions = { ...defaultDebugOptions, ...options };

0 commit comments

Comments
 (0)