Skip to content

Commit

Permalink
Update actions.js filename to actions.ts in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmashuang committed Feb 3, 2023
1 parent 4cbf137 commit 212f686
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/pages/onboarding-flow/metametrics/metametrics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]))),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}));

Expand Down
2 changes: 1 addition & 1 deletion ui/pages/onboarding-flow/welcome/welcome.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 212f686

Please sign in to comment.