File tree Expand file tree Collapse file tree 1 file changed +8
-35
lines changed
packages/toolkit/src/query/tests Expand file tree Collapse file tree 1 file changed +8
-35
lines changed Original file line number Diff line number Diff line change
1
+ import { createSelectorCreator , lruMemoize } from '@reduxjs/toolkit'
2
+ import {
3
+ buildCreateApi ,
4
+ coreModule ,
5
+ reactHooksModule ,
6
+ } from '@reduxjs/toolkit/query/react'
7
+ import { render , screen , waitFor } from '@testing-library/react'
1
8
import * as React from 'react'
2
9
import type { ReactReduxContextValue } from 'react-redux'
3
10
import {
@@ -6,41 +13,7 @@ import {
6
13
createSelectorHook ,
7
14
createStoreHook ,
8
15
} from 'react-redux'
9
- import {
10
- buildCreateApi ,
11
- coreModule ,
12
- reactHooksModule ,
13
- } from '@reduxjs/toolkit/query/react'
14
- import {
15
- act ,
16
- fireEvent ,
17
- render ,
18
- screen ,
19
- waitFor ,
20
- renderHook ,
21
- } from '@testing-library/react'
22
- import userEvent from '@testing-library/user-event'
23
- import { rest } from 'msw'
24
- import {
25
- actionsReducer ,
26
- ANY ,
27
- expectExactType ,
28
- expectType ,
29
- setupApiStore ,
30
- withProvider ,
31
- useRenderCounter ,
32
- waitMs ,
33
- } from './helpers'
34
- import { server } from './mocks/server'
35
- import type { UnknownAction } from 'redux'
36
- import type { SubscriptionOptions } from '@reduxjs/toolkit/dist/query/core/apiState'
37
- import type { SerializedError } from '@reduxjs/toolkit'
38
- import {
39
- createListenerMiddleware ,
40
- configureStore ,
41
- lruMemoize ,
42
- createSelectorCreator ,
43
- } from '@reduxjs/toolkit'
16
+ import { setupApiStore , useRenderCounter } from '../../tests/utils/helpers'
44
17
import { delay } from '../../utils'
45
18
46
19
const MyContext = React . createContext < ReactReduxContextValue > ( null as any )
You can’t perform that action at this time.
0 commit comments