diff --git a/packages/core-data/src/resolvers.js b/packages/core-data/src/resolvers.js index 35c5dbd72af9b..0fe2532613692 100644 --- a/packages/core-data/src/resolvers.js +++ b/packages/core-data/src/resolvers.js @@ -9,6 +9,7 @@ import { find, includes, get, hasIn, compact, uniq } from 'lodash'; import { addQueryArgs } from '@wordpress/url'; import { controls } from '@wordpress/data'; import { apiFetch } from '@wordpress/data-controls'; +import triggerFetch from '@wordpress/api-fetch'; /** * Internal dependencies */ diff --git a/packages/core-data/src/test/resolvers.js b/packages/core-data/src/test/resolvers.js index 4aa7821b09efb..7ab300f6b7779 100644 --- a/packages/core-data/src/test/resolvers.js +++ b/packages/core-data/src/test/resolvers.js @@ -2,6 +2,9 @@ * WordPress dependencies */ import { apiFetch } from '@wordpress/data-controls'; +import triggerFetch from '@wordpress/api-fetch'; + +jest.mock( '@wordpress/api-fetch' ); /** * Internal dependencies