Click me
{children}
diff --git a/src/pages/my-profile/screens/MyProfileCounterparties/MyProfileCounterpartiesTableRow/__tests__/MyProfileCounterpartiesTableRow.spec.tsx b/src/pages/my-profile/screens/MyProfileCounterparties/MyProfileCounterpartiesTableRow/__tests__/MyProfileCounterpartiesTableRow.spec.tsx
index 40e42ff8..5d70996c 100644
--- a/src/pages/my-profile/screens/MyProfileCounterparties/MyProfileCounterpartiesTableRow/__tests__/MyProfileCounterpartiesTableRow.spec.tsx
+++ b/src/pages/my-profile/screens/MyProfileCounterparties/MyProfileCounterpartiesTableRow/__tests__/MyProfileCounterpartiesTableRow.spec.tsx
@@ -39,16 +39,7 @@ jest.mock('@deriv/api-v2', () => ({
},
}));
-const elModal = document.createElement('div');
describe('MyProfileCounterpartiesTableRow', () => {
- beforeAll(() => {
- elModal.setAttribute('id', 'v2_modal_root');
- document.body.appendChild(elModal);
- });
-
- afterAll(() => {
- document.body.removeChild(elModal);
- });
it('should render the component as expected', () => {
render(
);
expect(screen.getByText('nickname')).toBeInTheDocument();
diff --git a/src/providers/OrderDetailsProvider/__tests__/OrderDetailsProvider.spec.tsx b/src/providers/OrderDetailsProvider/__tests__/OrderDetailsProvider.spec.tsx
index 66b77b14..0960b769 100644
--- a/src/providers/OrderDetailsProvider/__tests__/OrderDetailsProvider.spec.tsx
+++ b/src/providers/OrderDetailsProvider/__tests__/OrderDetailsProvider.spec.tsx
@@ -1,3 +1,4 @@
+import { FC, PropsWithChildren } from 'react';
import { renderHook } from '@testing-library/react';
import { OrderDetailsProvider, useOrderDetails } from '../OrderDetailsProvider';
@@ -5,7 +6,7 @@ describe('useOrderDetails', () => {
it('should return the orderDetails from context', () => {
const mockValues = { isErrorOrderInfo: false, orderDetails: 'mockOrderDetails' };
- const wrapper: React.FC
= ({ children }) => (
+ const wrapper: FC = ({ children }) => (
{children}
);
diff --git a/types.ts b/types.ts
index d285fba5..81ed0f5b 100644
--- a/types.ts
+++ b/types.ts
@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/no-namespace */
+import { ERROR_CODES } from '@/constants';
import { api } from '@/hooks';
import { useAdvertiserStats } from '@/hooks/custom-hooks';
import { useExchangeRates } from '@deriv-com/api-hooks';
@@ -171,3 +172,5 @@ export type TCurrency = CurrencyConstants.Currency;
export type TExchangeRate = ReturnType['exchangeRates'];
export type MutableOption = { text?: React.ReactNode; value?: string | undefined };
+
+export type TErrorCodes = (typeof ERROR_CODES)[keyof typeof ERROR_CODES];