From 44ff04e724957471856daee445f174449c58ae6d Mon Sep 17 00:00:00 2001 From: Anze Demsar Date: Thu, 12 Oct 2023 16:07:06 +0200 Subject: [PATCH] fix: fix some warnings in tests --- packages/decap-cms-core/src/actions/__tests__/media.spec.ts | 2 +- packages/decap-cms-core/src/routing/__tests__/history.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/decap-cms-core/src/actions/__tests__/media.spec.ts b/packages/decap-cms-core/src/actions/__tests__/media.spec.ts index 726bf3f038a9..41054fc5bc86 100644 --- a/packages/decap-cms-core/src/actions/__tests__/media.spec.ts +++ b/packages/decap-cms-core/src/actions/__tests__/media.spec.ts @@ -1,7 +1,7 @@ import { Map } from 'immutable'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; -import { mocked } from 'ts-jest/utils'; +import { mocked } from 'jest-mock'; import { getAsset, ADD_ASSET, LOAD_ASSET_REQUEST } from '../media'; import { selectMediaFilePath } from '../../reducers/entries'; diff --git a/packages/decap-cms-core/src/routing/__tests__/history.spec.ts b/packages/decap-cms-core/src/routing/__tests__/history.spec.ts index 7caf67563188..ba2344b7c805 100644 --- a/packages/decap-cms-core/src/routing/__tests__/history.spec.ts +++ b/packages/decap-cms-core/src/routing/__tests__/history.spec.ts @@ -1,5 +1,5 @@ import { createHashHistory } from 'history'; -import { mocked } from 'ts-jest/utils'; +import { mocked } from 'jest-mock'; import type { History } from 'history';