Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
puntope committed Nov 5, 2024
1 parent a77748f commit e88e509
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/src/dashboard/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ import isWCTracksEnabled from '.~/utils/isWCTracksEnabled';
import RebrandingTour from '.~/components/tours/rebranding-tour';
import { GUIDE_NAMES } from '.~/constants';

jest.mock( '.~/hooks/useGTINMigrationStatus', () =>
jest
.fn()
.mockReturnValue( [ 'completed', false, jest.fn() ] )
.mockName( 'useGTINMigrationStatus' )
);

jest.mock( '.~/components/different-currency-notice', () =>
jest.fn().mockName( 'DifferentCurrencyNotice' )
);
Expand Down

0 comments on commit e88e509

Please sign in to comment.