docs: fix small issues

This commit is contained in:
Maciej Jastrzebski
2026-01-15 18:36:27 +01:00
parent bf946b07cf
commit a3c28bd7b5
2 changed files with 8 additions and 2 deletions
@@ -69,7 +69,11 @@ Each query has a default `timeout` value of 1000 ms and a default `interval` of
#### Example
```typescript
const button = await screen.findByRole('button'), { name: 'Start' }, { timeout: 1000, interval: 50 });
const button = await screen.findByRole(
'button',
{ name: 'Start' },
{ timeout: 1000, interval: 50 }
);
```
Alternatively, a default global `timeout` value can be set using the [`configure` function](docs/api/misc/config#configure):
+3 -1
View File
@@ -123,7 +123,9 @@ You can also transform prop values so that they are more readable (e.g., flatten
```ts
import { StyleSheet } from 'react-native';
screen.debug({ mapProps : {({ style, ...props })} => ({ style : StyleSheet.flatten(style), ...props }) });
screen.debug({
mapProps: ({ style, ...props }) => ({ style: StyleSheet.flatten(style), ...props }),
});
```
Or remove props that have little value when debugging tests, e.g. path prop for svgs