diff --git a/ui/pages/onboarding-flow/metametrics/metametrics.test.js b/ui/pages/onboarding-flow/metametrics/metametrics.test.js index a7fdd5d0c443..e96e1264a90c 100644 --- a/ui/pages/onboarding-flow/metametrics/metametrics.test.js +++ b/ui/pages/onboarding-flow/metametrics/metametrics.test.js @@ -10,7 +10,7 @@ import { import { setParticipateInMetaMetrics } from '../../../store/actions'; import OnboardingMetametrics from './metametrics'; -jest.mock('../../../store/actions.js', () => ({ +jest.mock('../../../store/actions.ts', () => ({ setParticipateInMetaMetrics: jest .fn() .mockReturnValue(jest.fn((val) => Promise.resolve([val]))), diff --git a/ui/pages/onboarding-flow/onboarding-app-header/onboarding-app-header.test.js b/ui/pages/onboarding-flow/onboarding-app-header/onboarding-app-header.test.js index a293f79c9c2b..93d68478c57f 100644 --- a/ui/pages/onboarding-flow/onboarding-app-header/onboarding-app-header.test.js +++ b/ui/pages/onboarding-flow/onboarding-app-header/onboarding-app-header.test.js @@ -11,7 +11,7 @@ jest.mock('../../../../app/_locales/index.json', () => { return [{ code: 'en', name: 'English' }]; }); -jest.mock('../../../store/actions.js', () => ({ +jest.mock('../../../store/actions.ts', () => ({ updateCurrentLocale: () => mockUpdateCurrentLocale, })); diff --git a/ui/pages/onboarding-flow/recovery-phrase/confirm-recovery-phrase.test.js b/ui/pages/onboarding-flow/recovery-phrase/confirm-recovery-phrase.test.js index ebf765b8d292..18208977fb90 100644 --- a/ui/pages/onboarding-flow/recovery-phrase/confirm-recovery-phrase.test.js +++ b/ui/pages/onboarding-flow/recovery-phrase/confirm-recovery-phrase.test.js @@ -6,8 +6,8 @@ import { renderWithProvider } from '../../../../test/lib/render-helpers'; import { setSeedPhraseBackedUp } from '../../../store/actions'; import ConfirmRecoveryPhrase from './confirm-recovery-phrase'; -jest.mock('../../../store/actions.js', () => ({ - ...jest.requireActual('../../../store/actions.js'), +jest.mock('../../../store/actions.ts', () => ({ + ...jest.requireActual('../../../store/actions.ts'), setSeedPhraseBackedUp: jest.fn().mockReturnValue(jest.fn()), })); diff --git a/ui/pages/onboarding-flow/welcome/welcome.test.js b/ui/pages/onboarding-flow/welcome/welcome.test.js index db1565f8f0af..8cd699012ff7 100644 --- a/ui/pages/onboarding-flow/welcome/welcome.test.js +++ b/ui/pages/onboarding-flow/welcome/welcome.test.js @@ -15,7 +15,7 @@ import OnboardingWelcome from './welcome'; const mockHistoryReplace = jest.fn(); const mockHistoryPush = jest.fn(); -jest.mock('../../../store/actions.js', () => ({ +jest.mock('../../../store/actions.ts', () => ({ setFirstTimeFlowType: jest.fn().mockReturnValue( jest.fn((type) => { return type;