Skip to content

Commit

Permalink
Block Directory: enable fake timers where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Dec 22, 2022
1 parent de83afc commit 6d1f087
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6d1f087

Please sign in to comment.