File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
user-event/scroll/__tests__/__snapshots__ Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ import { getConfig } from './config';
1111import { getHostSelves } from './helpers/component-tree' ;
1212import type { DebugOptions } from './helpers/debug' ;
1313import { debug } from './helpers/debug' ;
14+ import { ErrorWithStack } from './helpers/errors' ;
1415import { renderWithAsyncAct } from './render-act' ;
1516import { setRenderResult } from './screen' ;
1617import { getQueriesForElement } from './within' ;
17- import { ErrorWithStack } from './helpers/errors' ;
1818
1919export interface RenderAsyncOptions {
2020 /**
@@ -71,7 +71,9 @@ function buildRenderResult(
7171 } ;
7272 const rerenderAsync = async function ( component : React . ReactElement ) {
7373 // eslint-disable-next-line require-await
74- await act ( async ( ) => { renderer . update ( wrap ( component ) ) ; } ) ;
74+ await act ( async ( ) => {
75+ renderer . update ( wrap ( component ) ) ;
76+ } ) ;
7577 } ;
7678
7779 const unmount = ( ) => {
Original file line number Diff line number Diff line change 1- // Jest Snapshot v1, https://goo.gl/fbAQLP
1+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22
33exports [` scrollTo() with FlatList supports vertical drag scroll: scrollTo({ y : 100 } ) 1` ] = `
44[
You can’t perform that action at this time.
0 commit comments