diff --git a/src/pages/people/__test__/userProfile.spec.tsx b/src/pages/people/__test__/userProfile.spec.tsx index 6f323126d..f5666f51a 100644 --- a/src/pages/people/__test__/userProfile.spec.tsx +++ b/src/pages/people/__test__/userProfile.spec.tsx @@ -3,10 +3,13 @@ import '@testing-library/jest-dom/extend-expect'; import { render, screen } from '@testing-library/react'; import { UserInfoDesktopView } from 'people/userInfo/UserInfoDesktopView'; import { MOCK_ENVIRONMENT_HOOKS } from '__test__/__mockStore__/constants'; +import nock from 'nock'; +import { user } from '__test__/__mockData__/user'; import MockStoreEnvironment from '../../../__test__/__mockStore__/MockStoreEnvironment'; describe('User Profile', () => { it('Should render edit profile button of self profile', () => { + nock(user.url).get('/person/id/1').reply(200, {}); render( null} />