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';
11
11
import { getHostSelves } from './helpers/component-tree' ;
12
12
import type { DebugOptions } from './helpers/debug' ;
13
13
import { debug } from './helpers/debug' ;
14
+ import { ErrorWithStack } from './helpers/errors' ;
14
15
import { renderWithAsyncAct } from './render-act' ;
15
16
import { setRenderResult } from './screen' ;
16
17
import { getQueriesForElement } from './within' ;
17
- import { ErrorWithStack } from './helpers/errors' ;
18
18
19
19
export interface RenderAsyncOptions {
20
20
/**
@@ -71,7 +71,9 @@ function buildRenderResult(
71
71
} ;
72
72
const rerenderAsync = async function ( component : React . ReactElement ) {
73
73
// eslint-disable-next-line require-await
74
- await act ( async ( ) => { renderer . update ( wrap ( component ) ) ; } ) ;
74
+ await act ( async ( ) => {
75
+ renderer . update ( wrap ( component ) ) ;
76
+ } ) ;
75
77
} ;
76
78
77
79
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
2
2
3
3
exports [` scrollTo() with FlatList supports vertical drag scroll: scrollTo({ y : 100 } ) 1` ] = `
4
4
[
You can’t perform that action at this time.
0 commit comments