From a1916faa71df01a920635c6410a09b4caf6f1ab9 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Mon, 5 Aug 2024 22:42:01 -0400 Subject: [PATCH] Fix instrument test types --- .../test/instrument.spec.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/redux-devtools-instrument/test/instrument.spec.ts b/packages/redux-devtools-instrument/test/instrument.spec.ts index 3826afc5..f2fe43c3 100644 --- a/packages/redux-devtools-instrument/test/instrument.spec.ts +++ b/packages/redux-devtools-instrument/test/instrument.spec.ts @@ -1,4 +1,11 @@ -import { createStore, compose, Reducer, Store, Action } from 'redux'; +import { + createStore, + compose, + Reducer, + Store, + Action, + StoreEnhancer, +} from 'redux'; import { ActionCreators, EnhancedStore, @@ -1398,7 +1405,10 @@ describe('instrument', () => { it('throws if there are more than one instrument enhancer included', () => { expect(() => { - createStore(counter, compose(instrument(), instrument())); + createStore( + counter, + compose(instrument(), instrument()) as StoreEnhancer, + ); }).toThrow( 'DevTools instrumentation should not be applied more than once. ' + 'Check your store configuration.',