From e88e5096a0708d69bed5b9ac301d5cf7be789f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20P=C3=A9rez=20Pellicer?= <5908855+puntope@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:21:16 +0100 Subject: [PATCH] Fix tests --- js/src/dashboard/index.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/src/dashboard/index.test.js b/js/src/dashboard/index.test.js index 8c44142042..37cd070180 100644 --- a/js/src/dashboard/index.test.js +++ b/js/src/dashboard/index.test.js @@ -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' ) );