From 79594a6e573391171f7ace08083e4e25a74ed54a Mon Sep 17 00:00:00 2001 From: ahmadtaimoor-deriv <129935294+ahmadtaimoor-deriv@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:34:17 +0800 Subject: [PATCH] fix: review fix --- .../AppV2/Components/CardWrapper/__tests__/card-wrapper.spec.tsx | 1 - .../__tests__/contract-details-footer.spec.tsx | 1 - .../DealCancellation/__tests__/deal-cancellation.spec.tsx | 1 - .../AppV2/Components/PayoutInfo/__tests__/payout-info.spec.tsx | 1 - .../PayoutInfoModal/__tests__/payout-info-model.spec.tsx | 1 - .../RiskManagementItem/__tests__/risk-management-item.spec.tsx | 1 - .../src/AppV2/Components/StopLoss/__tests__/stop-loss.spec.tsx | 1 - .../AppV2/Components/TakeProfit/__tests__/take-profit.spec.tsx | 1 - .../TakeProfitHistory/__tests__/take-profit-history.spec.tsx | 1 - .../AppV2/Containers/Chart/__tests__/chart-placeholder.spec.tsx | 1 - .../ContractDetails/__tests__/contract-details.spec.tsx | 1 - 11 files changed, 11 deletions(-) diff --git a/packages/trader/src/AppV2/Components/CardWrapper/__tests__/card-wrapper.spec.tsx b/packages/trader/src/AppV2/Components/CardWrapper/__tests__/card-wrapper.spec.tsx index da00a529428c..cec2db2e850f 100644 --- a/packages/trader/src/AppV2/Components/CardWrapper/__tests__/card-wrapper.spec.tsx +++ b/packages/trader/src/AppV2/Components/CardWrapper/__tests__/card-wrapper.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom/extend-expect'; import CardWrapper from '../card-wrapper'; jest.mock('@deriv-com/quill-ui', () => ({ diff --git a/packages/trader/src/AppV2/Components/ContractDetailsFooter/__tests__/contract-details-footer.spec.tsx b/packages/trader/src/AppV2/Components/ContractDetailsFooter/__tests__/contract-details-footer.spec.tsx index 649b33ea53a4..ed25e0596f86 100644 --- a/packages/trader/src/AppV2/Components/ContractDetailsFooter/__tests__/contract-details-footer.spec.tsx +++ b/packages/trader/src/AppV2/Components/ContractDetailsFooter/__tests__/contract-details-footer.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom'; import { StoreProvider, mockStore } from '@deriv/stores'; import { isValidToSell, isValidToCancel, isMultiplierContract } from '@deriv/shared'; import ContractDetailsFooter from '../contract-details-footer'; diff --git a/packages/trader/src/AppV2/Components/DealCancellation/__tests__/deal-cancellation.spec.tsx b/packages/trader/src/AppV2/Components/DealCancellation/__tests__/deal-cancellation.spec.tsx index 70febcebe7a5..302cd693b3c2 100644 --- a/packages/trader/src/AppV2/Components/DealCancellation/__tests__/deal-cancellation.spec.tsx +++ b/packages/trader/src/AppV2/Components/DealCancellation/__tests__/deal-cancellation.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom/extend-expect'; import DealCancellation from '../deal-cancellation'; import { isValidToCancel, isOpen } from '@deriv/shared'; import { getContractDetailsConfig } from 'AppV2/Utils/contract-details-config'; diff --git a/packages/trader/src/AppV2/Components/PayoutInfo/__tests__/payout-info.spec.tsx b/packages/trader/src/AppV2/Components/PayoutInfo/__tests__/payout-info.spec.tsx index 1001aae69e68..d561c0847b4f 100644 --- a/packages/trader/src/AppV2/Components/PayoutInfo/__tests__/payout-info.spec.tsx +++ b/packages/trader/src/AppV2/Components/PayoutInfo/__tests__/payout-info.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom/extend-expect'; import PayoutInfo from '../payout-info'; import { TContractInfo, mockContractInfo } from '@deriv/shared'; diff --git a/packages/trader/src/AppV2/Components/PayoutInfoModal/__tests__/payout-info-model.spec.tsx b/packages/trader/src/AppV2/Components/PayoutInfoModal/__tests__/payout-info-model.spec.tsx index c8ebf506e139..b84a51dff9ba 100644 --- a/packages/trader/src/AppV2/Components/PayoutInfoModal/__tests__/payout-info-model.spec.tsx +++ b/packages/trader/src/AppV2/Components/PayoutInfoModal/__tests__/payout-info-model.spec.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import '@testing-library/jest-dom'; import { render, screen, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import PayoutInfoModal from '../payout-info-modal'; diff --git a/packages/trader/src/AppV2/Components/RiskManagementItem/__tests__/risk-management-item.spec.tsx b/packages/trader/src/AppV2/Components/RiskManagementItem/__tests__/risk-management-item.spec.tsx index 769570223a3b..04160a775226 100644 --- a/packages/trader/src/AppV2/Components/RiskManagementItem/__tests__/risk-management-item.spec.tsx +++ b/packages/trader/src/AppV2/Components/RiskManagementItem/__tests__/risk-management-item.spec.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import '@testing-library/jest-dom/extend-expect'; import RiskManagementItem from '../risk-management-item'; import useContractDetails from 'AppV2/Hooks/useContractDetails'; import { CONTRACT_TYPES } from '@deriv/shared'; diff --git a/packages/trader/src/AppV2/Components/StopLoss/__tests__/stop-loss.spec.tsx b/packages/trader/src/AppV2/Components/StopLoss/__tests__/stop-loss.spec.tsx index 72253d0247a3..4f247f09c2b3 100644 --- a/packages/trader/src/AppV2/Components/StopLoss/__tests__/stop-loss.spec.tsx +++ b/packages/trader/src/AppV2/Components/StopLoss/__tests__/stop-loss.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom/extend-expect'; import StopLoss from '../stop-loss'; jest.mock('AppV2/Hooks/useContractDetails', () => ({ diff --git a/packages/trader/src/AppV2/Components/TakeProfit/__tests__/take-profit.spec.tsx b/packages/trader/src/AppV2/Components/TakeProfit/__tests__/take-profit.spec.tsx index 0bcb1f5858a5..1fbd210da6f7 100644 --- a/packages/trader/src/AppV2/Components/TakeProfit/__tests__/take-profit.spec.tsx +++ b/packages/trader/src/AppV2/Components/TakeProfit/__tests__/take-profit.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom/extend-expect'; import TakeProfit from '../take-profit'; jest.mock('AppV2/Hooks/useContractDetails', () => ({ diff --git a/packages/trader/src/AppV2/Components/TakeProfitHistory/__tests__/take-profit-history.spec.tsx b/packages/trader/src/AppV2/Components/TakeProfitHistory/__tests__/take-profit-history.spec.tsx index c65ce1506999..ce24062a2132 100644 --- a/packages/trader/src/AppV2/Components/TakeProfitHistory/__tests__/take-profit-history.spec.tsx +++ b/packages/trader/src/AppV2/Components/TakeProfitHistory/__tests__/take-profit-history.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen, fireEvent } from '@testing-library/react'; -import '@testing-library/jest-dom/extend-expect'; import TakeProfitHistory from '../take-profit-history'; import { formatDate, formatTime, TContractStore } from '@deriv/shared'; import { FormatUtils } from '@deriv-com/utils'; diff --git a/packages/trader/src/AppV2/Containers/Chart/__tests__/chart-placeholder.spec.tsx b/packages/trader/src/AppV2/Containers/Chart/__tests__/chart-placeholder.spec.tsx index 5969a4c6e3e0..74ac46a10b0c 100644 --- a/packages/trader/src/AppV2/Containers/Chart/__tests__/chart-placeholder.spec.tsx +++ b/packages/trader/src/AppV2/Containers/Chart/__tests__/chart-placeholder.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import '@testing-library/jest-dom'; import ChartPlaceholder from '../chart-placeholder'; describe('ChartPlaceholder', () => { diff --git a/packages/trader/src/AppV2/Containers/ContractDetails/__tests__/contract-details.spec.tsx b/packages/trader/src/AppV2/Containers/ContractDetails/__tests__/contract-details.spec.tsx index 73af8e628343..2d7892e6837f 100644 --- a/packages/trader/src/AppV2/Containers/ContractDetails/__tests__/contract-details.spec.tsx +++ b/packages/trader/src/AppV2/Containers/ContractDetails/__tests__/contract-details.spec.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { act, render, screen, waitFor } from '@testing-library/react'; -import '@testing-library/jest-dom'; import ContractDetails from '../contract-details'; import useContractDetails from 'AppV2/Hooks/useContractDetails'; import useOrderDetails from 'AppV2/Hooks/useOrderDetails';