Skip to content

Commit 7af0b70

Browse files
committed
chore: fix render debug
1 parent fc6e07b commit 7af0b70

File tree

1 file changed

+199
-6
lines changed

1 file changed

+199
-6
lines changed

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

Lines changed: 199 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,207 @@ exports[`debug 1`] = `
8080
</View>"
8181
`;
8282

83-
exports[`debug changing component: bananaFresh button message should now be "fresh" 1`] = `"💠 Test "debug changing component": using internal renderer"`;
83+
exports[`debug changing component: bananaFresh button message should now be "fresh" 1`] = `
84+
"<View>
85+
<Text>
86+
Is the banana fresh?
87+
</Text>
88+
<Text
89+
testID="bananaFresh"
90+
>
91+
not fresh
92+
</Text>
93+
<TextInput
94+
placeholder="Add custom freshness"
95+
testID="bananaCustomFreshness"
96+
value="Custom Freshie"
97+
/>
98+
<TextInput
99+
defaultValue="What did you inspect?"
100+
placeholder="Who inspected freshness?"
101+
testID="bananaChef"
102+
value="I inspected freshie"
103+
/>
104+
<TextInput
105+
defaultValue="What banana?"
106+
/>
107+
<TextInput
108+
defaultValue="hello"
109+
value=""
110+
/>
111+
<View
112+
accessibilityState={
113+
{
114+
"busy": undefined,
115+
"checked": undefined,
116+
"disabled": undefined,
117+
"expanded": undefined,
118+
"selected": undefined,
119+
}
120+
}
121+
accessibilityValue={
122+
{
123+
"max": undefined,
124+
"min": undefined,
125+
"now": undefined,
126+
"text": undefined,
127+
}
128+
}
129+
accessible={true}
130+
collapsable={false}
131+
focusable={true}
132+
onBlur={[Function onBlur]}
133+
onClick={[Function onClick]}
134+
onFocus={[Function onFocus]}
135+
onResponderGrant={[Function onResponderGrant]}
136+
onResponderMove={[Function onResponderMove]}
137+
onResponderRelease={[Function onResponderRelease]}
138+
onResponderTerminate={[Function onResponderTerminate]}
139+
onResponderTerminationRequest={[Function onResponderTerminationRequest]}
140+
onStartShouldSetResponder={[Function onStartShouldSetResponder]}
141+
role="button"
142+
>
143+
<Text>
144+
Change freshness!
145+
</Text>
146+
</View>
147+
<Text
148+
testID="duplicateText"
149+
>
150+
First Text
151+
</Text>
152+
<Text
153+
testID="duplicateText"
154+
>
155+
Second Text
156+
</Text>
157+
<Text>
158+
0
159+
</Text>
160+
</View>"
161+
`;
84162

85-
exports[`debug should use debugOptions from config when no option is specified 1`] = `"💠 Test "debug should use debugOptions from config when no option is specified": using internal renderer"`;
163+
exports[`debug should use debugOptions from config when no option is specified 1`] = `
164+
"<View>
165+
<Text>
166+
hello
167+
</Text>
168+
</View>"
169+
`;
86170

87-
exports[`debug should use given options over config debugOptions 1`] = `"💠 Test "debug should use given options over config debugOptions": using internal renderer"`;
171+
exports[`debug should use given options over config debugOptions 1`] = `
172+
"<View
173+
style={
174+
{
175+
"backgroundColor": "red",
176+
}
177+
}
178+
>
179+
<Text>
180+
hello
181+
</Text>
182+
</View>"
183+
`;
88184

89-
exports[`debug with only children prop 1`] = `"💠 Test "debug with only children prop": using internal renderer"`;
185+
exports[`debug with only children prop 1`] = `
186+
"<View>
187+
<Text>
188+
Is the banana fresh?
189+
</Text>
190+
<Text>
191+
not fresh
192+
</Text>
193+
<TextInput />
194+
<TextInput />
195+
<TextInput />
196+
<TextInput />
197+
<View>
198+
<Text>
199+
Change freshness!
200+
</Text>
201+
</View>
202+
<Text>
203+
First Text
204+
</Text>
205+
<Text>
206+
Second Text
207+
</Text>
208+
<Text>
209+
0
210+
</Text>
211+
</View>"
212+
`;
90213

91-
exports[`debug with only prop whose value is bananaChef 1`] = `"💠 Test "debug with only prop whose value is bananaChef": using internal renderer"`;
214+
exports[`debug with only prop whose value is bananaChef 1`] = `
215+
"<View>
216+
<Text>
217+
Is the banana fresh?
218+
</Text>
219+
<Text>
220+
not fresh
221+
</Text>
222+
<TextInput />
223+
<TextInput
224+
testID="bananaChef"
225+
/>
226+
<TextInput />
227+
<TextInput />
228+
<View>
229+
<Text>
230+
Change freshness!
231+
</Text>
232+
</View>
233+
<Text>
234+
First Text
235+
</Text>
236+
<Text>
237+
Second Text
238+
</Text>
239+
<Text>
240+
0
241+
</Text>
242+
</View>"
243+
`;
92244

93-
exports[`debug with only props from TextInput components 1`] = `"💠 Test "debug with only props from TextInput components": using internal renderer"`;
245+
exports[`debug with only props from TextInput components 1`] = `
246+
"<View>
247+
<Text>
248+
Is the banana fresh?
249+
</Text>
250+
<Text>
251+
not fresh
252+
</Text>
253+
<TextInput
254+
placeholder="Add custom freshness"
255+
testID="bananaCustomFreshness"
256+
value="Custom Freshie"
257+
/>
258+
<TextInput
259+
defaultValue="What did you inspect?"
260+
placeholder="Who inspected freshness?"
261+
testID="bananaChef"
262+
value="I inspected freshie"
263+
/>
264+
<TextInput
265+
defaultValue="What banana?"
266+
/>
267+
<TextInput
268+
defaultValue="hello"
269+
value=""
270+
/>
271+
<View>
272+
<Text>
273+
Change freshness!
274+
</Text>
275+
</View>
276+
<Text>
277+
First Text
278+
</Text>
279+
<Text>
280+
Second Text
281+
</Text>
282+
<Text>
283+
0
284+
</Text>
285+
</View>"
286+
`;

0 commit comments

Comments
 (0)