diff --git a/packages/block-directory/src/components/downloadable-block-list-item/test/index.js b/packages/block-directory/src/components/downloadable-block-list-item/test/index.js index d2939624fab68e..3e22334aeb6a6d 100644 --- a/packages/block-directory/src/components/downloadable-block-list-item/test/index.js +++ b/packages/block-directory/src/components/downloadable-block-list-item/test/index.js @@ -15,6 +15,8 @@ import { useSelect } from '@wordpress/data'; import DownloadableBlockListItem from '../'; import { plugin } from '../../test/fixtures'; +jest.useFakeTimers(); + jest.mock( '@wordpress/data/src/components/use-select', () => { // This allows us to tweak the returned value on each test. const mock = jest.fn();