Skip to content

Commit

Permalink
Use legacy fake timers for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Jul 10, 2023
1 parent d6f737e commit 22b7307
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/nux/src/components/dot-tip/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ import { DotTip } from '..';
const noop = () => {};

describe( 'DotTip', () => {
beforeEach( () => {
jest.useFakeTimers();
} );

afterEach( () => {
jest.useRealTimers();
} );

it( 'should not render anything if invisible', async () => {
render(
<DotTip>
Expand Down

0 comments on commit 22b7307

Please sign in to comment.