Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/ui/ConciergePromptBoxTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {isSafari} from '@libs/Browser';
import ConciergePromptBox, {PLACEHOLDER_SKELETON_TEST_ID} from '@pages/home/ForYouSection/ConciergePromptBox';

import {close} from '@userActions/Modal';
import type * as ReportActionsModule from '@userActions/Report';
import {isAnonymousUser, signOutAndRedirectToSignIn} from '@userActions/Session';

import CONST from '@src/CONST';
Expand Down Expand Up @@ -162,6 +163,12 @@ jest.mock('@userActions/Modal', () => ({
close: jest.fn(),
}));

// Typing a mention searches for users on the server, and that request must not reach the network in tests.
jest.mock('@userActions/Report', () => ({
...jest.requireActual<typeof ReportActionsModule>('@userActions/Report'),
searchUserInServer: jest.fn(),
}));

jest.mock('@userActions/Session', () => ({
isAnonymousUser: jest.fn(() => false),
signOutAndRedirectToSignIn: jest.fn(),
Expand Down
Loading