From 0813b61b6095bf89527ebdcb26df03fe8cf0cc2f Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Mon, 25 Dec 2023 00:22:38 -0500 Subject: [PATCH] Fix some test type errors --- .../test/instrument.spec.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/redux-devtools-instrument/test/instrument.spec.ts b/packages/redux-devtools-instrument/test/instrument.spec.ts index 117bdce9..3826afc5 100644 --- a/packages/redux-devtools-instrument/test/instrument.spec.ts +++ b/packages/redux-devtools-instrument/test/instrument.spec.ts @@ -3,6 +3,7 @@ import { ActionCreators, EnhancedStore, instrument, + LiftedAction, LiftedStore, LiftedState, } from '../src/instrument'; @@ -487,10 +488,18 @@ describe('instrument', () => { const savedComputedStates = monitoredLiftedStore.getState().computedStates; - monitoredLiftedStore.dispatch({ type: 'lol' } as Action); + monitoredLiftedStore.dispatch({ type: 'lol' } as unknown as LiftedAction< + number, + Action, + null + >); expect(reducerCalls).toBe(4); - monitoredLiftedStore.dispatch({ type: 'wat' } as Action); + monitoredLiftedStore.dispatch({ type: 'wat' } as unknown as LiftedAction< + number, + Action, + null + >); expect(reducerCalls).toBe(4); expect(monitoredLiftedStore.getState().computedStates).toBe(