Skip to content

Commit a5d4070

Browse files
committed
Avoid a cyclic dependency problem by importing actions in a test :|
1 parent b355cd4 commit a5d4070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/state/userConsistencyChecker.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import "../../app/state/actions"; // very annoying but this needs to be imported early to avoid a cyclic dependency issue
12
import {getUserId, setUserId} from "../../app/state/userConsistencyCheckerCurrentUser";
23
import {ACTION_TYPE} from "../../app/services/constants";
3-
44
import {userConsistencyCheckerMiddleware} from "../../app/state/userConsistencyChecker";
55
import {AnyAction, Dispatch, MiddlewareAPI} from "redux";
66

0 commit comments

Comments
 (0)