File tree 2 files changed +2
-5
lines changed 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ test.each([false, true])(
143
143
fireEvent . press ( screen . getByText ( 'Change freshness!' ) ) ;
144
144
expect ( screen . queryByText ( 'Fresh' ) ) . toBeNull ( ) ;
145
145
146
- act ( ( ) => {
146
+ await act ( ( ) => {
147
147
jest . advanceTimersByTime ( 300 ) ;
148
148
} ) ;
149
149
const freshBananaText = await waitFor ( ( ) => screen . getByText ( 'Fresh' ) ) ;
Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ export type DebugOptions = {
8
8
/**
9
9
* Log pretty-printed deep test component instance
10
10
*/
11
- export function debug (
12
- instance : JsonNode | JsonNode [ ] ,
13
- options ?: DebugOptions | string ,
14
- ) {
11
+ export function debug ( instance : JsonNode | JsonNode [ ] , options ?: DebugOptions | string ) {
15
12
const message = typeof options === 'string' ? options : options ?. message ;
16
13
17
14
const formatOptions = typeof options === 'object' ? { mapProps : options ?. mapProps } : undefined ;
You can’t perform that action at this time.
0 commit comments