File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/toolkit/src/query/tests Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1503,6 +1503,10 @@ describe('hooks tests', () => {
15031503 expect ( screen . getByTestId ( 'isFetching' ) . textContent ) . toBe ( 'false' )
15041504 )
15051505
1506+ await waitFor ( ( ) =>
1507+ expect ( screen . getByTestId ( 'isFetching' ) . textContent ) . toBe ( 'false' )
1508+ )
1509+
15061510 expect (
15071511 api . endpoints . getUser . select ( USER_ID ) ( storeRef . store . getState ( ) as any )
15081512 ) . toEqual ( {
@@ -1639,6 +1643,10 @@ describe('hooks tests', () => {
16391643 expect ( screen . getByTestId ( 'isFetching' ) . textContent ) . toBe ( 'false' )
16401644 )
16411645
1646+ await waitFor ( ( ) =>
1647+ expect ( screen . getByTestId ( 'isFetching' ) . textContent ) . toBe ( 'false' )
1648+ )
1649+
16421650 expect (
16431651 api . endpoints . getUser . select ( USER_ID ) ( storeRef . store . getState ( ) as any )
16441652 ) . toEqual ( {
You can’t perform that action at this time.
0 commit comments