diff --git a/package-lock.json b/package-lock.json index 993d85c..125231f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3637,14 +3637,6 @@ } } }, - "node_modules/@reduxjs/toolkit/node_modules/redux-thunk": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz", - "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==", - "peerDependencies": { - "redux": "^5.0.0" - } - }, "node_modules/@restart/hooks": { "version": "0.4.16", "resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.4.16.tgz", @@ -12234,6 +12226,14 @@ "lodash.isplainobject": "^4.0.6" } }, + "node_modules/redux-thunk": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz", + "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==", + "peerDependencies": { + "redux": "^5.0.0" + } + }, "node_modules/reflect.getprototypeof": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz", diff --git a/src/features/layers/layersSlice.spec.js b/src/features/layers/layersSlice.spec.js index 4774b3d..8a6fa57 100644 --- a/src/features/layers/layersSlice.spec.js +++ b/src/features/layers/layersSlice.spec.js @@ -1,5 +1,5 @@ import configureMockStore from "redux-mock-store" -import thunk from "redux-thunk" +import { thunk } from "redux-thunk" import { resetUniqueId } from "@/common/mocks" import { configureStore } from "@reduxjs/toolkit" import layersReducer, { @@ -25,7 +25,8 @@ import fontsReducer from "@/features/fonts/fontsSlice" import EffectLayer from "@/features/effects/EffectLayer" import Layer from "./Layer" -const mockStore = configureMockStore([thunk]) +const middleware = [thunk] +const mockStore = configureMockStore(middleware) beforeEach(() => { resetUniqueId()