File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 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])(
143143 fireEvent . press ( screen . getByText ( 'Change freshness!' ) ) ;
144144 expect ( screen . queryByText ( 'Fresh' ) ) . toBeNull ( ) ;
145145
146- act ( ( ) => {
146+ await act ( ( ) => {
147147 jest . advanceTimersByTime ( 300 ) ;
148148 } ) ;
149149 const freshBananaText = await waitFor ( ( ) => screen . getByText ( 'Fresh' ) ) ;
Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ export type DebugOptions = {
88/**
99 * Log pretty-printed deep test component instance
1010 */
11- export function debug (
12- instance : JsonNode | JsonNode [ ] ,
13- options ?: DebugOptions | string ,
14- ) {
11+ export function debug ( instance : JsonNode | JsonNode [ ] , options ?: DebugOptions | string ) {
1512 const message = typeof options === 'string' ? options : options ?. message ;
1613
1714 const formatOptions = typeof options === 'object' ? { mapProps : options ?. mapProps } : undefined ;
You can’t perform that action at this time.
0 commit comments