File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 6
6
"no-await-in-loop": "off",
7
7
"react-hooks/rules-of-hooks": "off",
8
8
"no-console": "off",
9
- "import/no-unresolved": "off"
9
+ "import/no-unresolved": "off",
10
+ "@typescript-eslint/no-floating-promises": "off"
10
11
},
11
12
"parserOptions": {
12
13
"project": ["./tsconfig.json", "./test/tsconfig.json"]
Original file line number Diff line number Diff line change @@ -90,21 +90,18 @@ function renderHook<TProps, TResult>(
90
90
) as ReactElement
91
91
92
92
let testRenderer : ReactTestRenderer
93
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
94
93
act ( ( ) => {
95
94
testRenderer = create ( toRender ( ) )
96
95
} )
97
-
96
+
98
97
function rerenderHook ( newProps : typeof initialProps = hookProps . current ) {
99
98
hookProps . current = newProps
100
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
101
99
act ( ( ) => {
102
100
testRenderer . update ( toRender ( ) )
103
101
} )
104
102
}
105
103
106
104
function unmountHook ( ) {
107
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
108
105
act ( ( ) => {
109
106
removeCleanup ( unmountHook )
110
107
testRenderer . unmount ( )
You can’t perform that action at this time.
0 commit comments