Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • build
  • build-dev
  • build-test
  • dev
  • lint/testing-libraby-plugin
  • master
  • renovate/copy-webpack-plugin-13.x
  • renovate/couchdb-3.x
  • renovate/cozy-client-49.x
  • renovate/cozy-device-helper-3.x
  • renovate/cozy-flags-4.x
  • renovate/cozy-harvest-lib-32.x
  • renovate/cozy-harvest-lib-9.x
  • renovate/cozy-realtime-5.x
  • renovate/cozy-scripts-8.x
  • renovate/devdependencies-(non-major)
  • renovate/eslint-9.x
  • renovate/eslint-config-prettier-10.x
  • renovate/eslint-plugin-testing-library-7.x
  • renovate/major-react-monorepo
  • renovate/major-react-router-monorepo
  • renovate/major-typescript-eslint-monorepo
  • renovate/react-19.x
  • renovate/react-dom-19.x
  • renovate/react-inspector-6.x
  • renovate/sass-loader-16.x
  • 0.1.0
  • 0.1.1
  • 0.1.2
  • 0.1.6
  • 0.1.7
  • 1.0.2
  • 1.0.3
  • 1.0.5
  • 1.0.6
  • 1.0.7
  • 1.0.8
  • 1.0.9
  • 1.1.0
  • 1.2.0
  • 1.2.1
  • 1.2.4-beta.1
  • V1.11.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.4-beta.1
  • v1.3.0
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.4.3
  • v1.4.4
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.6.3
  • v1.6.4
  • v1.6.5
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.7.4
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.8.0
  • v3.0.0
  • v3.1.0
  • v3.1.1
103 results

Target

Select target project
  • web-et-numerique/factory/llle_project/ecolyo
1 result
Select Git revision
  • build
  • build-dev
  • build-test
  • dev
  • lint/testing-libraby-plugin
  • master
  • renovate/copy-webpack-plugin-13.x
  • renovate/couchdb-3.x
  • renovate/cozy-client-49.x
  • renovate/cozy-device-helper-3.x
  • renovate/cozy-flags-4.x
  • renovate/cozy-harvest-lib-32.x
  • renovate/cozy-harvest-lib-9.x
  • renovate/cozy-realtime-5.x
  • renovate/cozy-scripts-8.x
  • renovate/devdependencies-(non-major)
  • renovate/eslint-9.x
  • renovate/eslint-config-prettier-10.x
  • renovate/eslint-plugin-testing-library-7.x
  • renovate/major-react-monorepo
  • renovate/major-react-router-monorepo
  • renovate/major-typescript-eslint-monorepo
  • renovate/react-19.x
  • renovate/react-dom-19.x
  • renovate/react-inspector-6.x
  • renovate/sass-loader-16.x
  • 0.1.0
  • 0.1.1
  • 0.1.2
  • 0.1.6
  • 0.1.7
  • 1.0.2
  • 1.0.3
  • 1.0.5
  • 1.0.6
  • 1.0.7
  • 1.0.8
  • 1.0.9
  • 1.1.0
  • 1.2.0
  • 1.2.1
  • 1.2.4-beta.1
  • V1.11.0
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.4-beta.1
  • v1.3.0
  • v1.4.0
  • v1.4.1
  • v1.4.2
  • v1.4.3
  • v1.4.4
  • v1.5.0
  • v1.5.1
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.6.3
  • v1.6.4
  • v1.6.5
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.7.4
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.8.3
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
  • v2.0.0
  • v2.0.1
  • v2.0.2
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.8.0
  • v3.0.0
  • v3.1.0
  • v3.1.1
103 results
Show changes
Showing
with 193 additions and 276 deletions
......@@ -9,12 +9,6 @@ import {
} from 'tests/__mocks__/chartData.mock'
import DataloadSectionValue from './DataloadSectionValue'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockToggleEstimationModal = jest.fn()
describe('DataloadSectionValue component', () => {
......
......@@ -3,19 +3,11 @@ import toJson from 'enzyme-to-json'
import React from 'react'
import EstimatedConsumptionModal from './EstimatedConsumptionModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockGetAllLastPrices = jest.fn()
jest.mock('services/fluidsPrices.service', () => {
return jest.fn(() => {
return {
getAllLastPrices: mockGetAllLastPrices,
}
})
return jest.fn(() => ({
getAllLastPrices: mockGetAllLastPrices,
}))
})
describe('EstimatedConsumptionModal component', () => {
......
......@@ -11,12 +11,6 @@ import { createMockEcolyoStore } from 'tests/__mocks__/store'
import InfoDataConsumptionVisualizer from './InfoDataConsumptionVisualizer'
import NoDataModal from './NoDataModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockAppDispatch = jest.spyOn(storeHooks, 'useAppDispatch')
describe('InfoDataConsumptionVisualizer component', () => {
......@@ -26,9 +20,6 @@ describe('InfoDataConsumptionVisualizer component', () => {
const mockDataload: Dataload = baseDataLoad
const store = createMockEcolyoStore()
beforeEach(() => {
store.clearActions()
})
it('should render correctly when data valid', () => {
const wrapper = mount(
......
......@@ -3,12 +3,6 @@ import toJson from 'enzyme-to-json'
import React from 'react'
import NoDataModal from './NoDataModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
describe('NoDataModal component', () => {
it('should render correctly', async () => {
const wrapper = mount(
......
......@@ -9,12 +9,6 @@ import {
} from 'tests/__mocks__/customPopup.mock'
import CustomPopupModal from './CustomPopupModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockHandleClose = jest.fn()
describe('CustomPopupModal component', () => {
......
......@@ -7,12 +7,6 @@ import React from 'react'
import { waitForComponentToPaint } from 'tests/__mocks__/testUtils'
import DateNavigator from './DateNavigator'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
jest.mock(
'components/DateNavigator/DateNavigatorFormat',
() => 'mock-date-navigator-format'
......
......@@ -2,18 +2,6 @@ import { shallow } from 'enzyme'
import React from 'react'
import DuelError from './DuelError'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockedNavigate = jest.fn()
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useNavigate: () => mockedNavigate,
}))
describe('DuelError component', () => {
it('should be rendered correctly', () => {
const component = shallow(<DuelError />).getElement()
......
......@@ -10,42 +10,15 @@ import { userChallengeData } from 'tests/__mocks__/userChallengeData.mock'
import DuelResultModal from '../DuelResultModal/DuelResultModal'
import DuelOngoing from './DuelOngoing'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockUserChallengeUpdateFlag = jest.fn()
const mockIsChallengeDone = jest.fn()
jest.mock('services/challenge.service', () => {
return jest.fn(() => {
return {
updateUserChallenge: mockUserChallengeUpdateFlag,
isChallengeDone: mockIsChallengeDone,
}
})
return jest.fn(() => ({
updateUserChallenge: mockUserChallengeUpdateFlag,
isChallengeDone: mockIsChallengeDone,
}))
})
const mockHistoryPush = jest.fn()
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useNavigate: () => ({
push: mockHistoryPush,
}),
}))
const mockImportIconById = jest.fn()
const mockFormatNumberValues = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
formatNumberValues: jest.fn(() => {
return mockFormatNumberValues
}),
}
})
jest.mock('components/Duel/DuelChart/DuelChart', () => 'mock-duelchart')
jest.mock(
'components/Duel/DuelResultModal/DuelResultModal',
......@@ -60,7 +33,6 @@ describe('DuelOngoing component', () => {
isWin: false,
isEmpty: false,
})
mockFormatNumberValues.mockReturnValue('20')
const wrapper = mount(
<Provider store={store}>
<DuelOngoing userChallenge={userChallengeData[0]} />
......
......@@ -5,27 +5,8 @@ import { waitForComponentToPaint } from 'tests/__mocks__/testUtils'
import { userChallengeData } from 'tests/__mocks__/userChallengeData.mock'
import DuelResultModal from './DuelResultModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockImportIconById = jest.fn()
const mockFormatNumberValues = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
formatNumberValues: jest.fn(() => {
return mockFormatNumberValues
}),
}
})
describe('DuelResultModal component', () => {
it('should render correctly', async () => {
mockImportIconById.mockReturnValue('')
const wrapper = mount(
<DuelResultModal
open={true}
......@@ -38,8 +19,6 @@ describe('DuelResultModal component', () => {
expect(toJson(wrapper)).toMatchSnapshot()
})
it('should render a loss modal', async () => {
mockImportIconById.mockReturnValue('')
const wrapper = mount(
<DuelResultModal
open={true}
......
......@@ -573,7 +573,7 @@ exports[`DuelResultModal component should render correctly 1`] = `
width="180"
>
<use
xlink:href="#"
xlink:href="#test-file-stub"
/>
</svg>
</div>
......@@ -585,9 +585,7 @@ exports[`DuelResultModal component should render correctly 1`] = `
<div
class="text-18-normal"
>
duel_result_modal.sucess.message1function () {
return fn.apply(this, arguments);
} €
duel_result_modal.sucess.message10,00 €
</div>
<div
class="text-18-normal"
......@@ -854,7 +852,7 @@ exports[`DuelResultModal component should render correctly 1`] = `
</Icon>
<Icon
className="imgResult"
icon=""
icon="test-file-stub"
size={180}
spin={false}
>
......@@ -871,7 +869,7 @@ exports[`DuelResultModal component should render correctly 1`] = `
width={180}
>
<use
xlinkHref="#"
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
......@@ -885,9 +883,7 @@ exports[`DuelResultModal component should render correctly 1`] = `
<div
className="text-18-normal"
>
duel_result_modal.sucess.message1function () {
return fn.apply(this, arguments);
} €
duel_result_modal.sucess.message10,00 €
</div>
<div
className="text-18-normal"
......
import Button from '@material-ui/core/Button'
import defaultIcon from 'assets/icons/visu/duel/default.svg'
import StyledIcon from 'components/CommonKit/Icon/StyledIcon'
import { FluidType, UserChallengeUpdateFlag } from 'enums'
import { mount } from 'enzyme'
import React from 'react'
import { Provider } from 'react-redux'
import UsageEventService from 'services/usageEvent.service'
import { createMockEcolyoStore, mockGlobalState } from 'tests/__mocks__/store'
import { userChallengeData } from 'tests/__mocks__/userChallengeData.mock'
import { formatNumberValues } from 'utils/utils'
import DuelUnlocked from './DuelUnlocked'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockImportIconById = jest.fn(() => defaultIcon)
const mockFormatNumberValues = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
formatNumberValues: jest.fn(() => {
return mockFormatNumberValues
}),
}
})
const mockUserChallengeUpdateFlag = jest.fn()
const mockGetUserChallengeDataload = jest.fn()
jest.mock('services/challenge.service', () => {
return jest.fn(() => {
return {
updateUserChallenge: mockUserChallengeUpdateFlag,
getUserChallengeDataload: mockGetUserChallengeDataload,
}
})
return jest.fn(() => ({
updateUserChallenge: mockUserChallengeUpdateFlag,
getUserChallengeDataload: mockGetUserChallengeDataload,
}))
})
const mockAddEvent = jest.fn()
jest.mock('services/usageEvent.service')
UsageEventService.addEvent = mockAddEvent
describe('DuelUnlocked component', () => {
beforeAll(() => {
jest.useFakeTimers()
})
afterAll(() => {
jest.useRealTimers()
})
const store = createMockEcolyoStore()
it('should be rendered correctly', () => {
......
......@@ -14,18 +14,11 @@ jest.mock('components/Header/CozyBar', () => 'mock-cozybar')
jest.mock('components/Header/Header', () => 'mock-header')
jest.mock('components/Content/Content', () => 'mock-content')
const mockedNavigate = jest.fn()
jest.mock('react-router-dom', () => ({
useLocation: () => ({
search: '?id=CHALLENGE0002',
}),
useNavigate: () => mockedNavigate,
}))
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
useNavigate: () => jest.fn(),
}))
describe('DuelView component', () => {
......
......@@ -4,12 +4,6 @@ import React from 'react'
import { waitForComponentToPaint } from 'tests/__mocks__/testUtils'
import LastDuelModal from './lastDuelModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
describe('lastDuelModal component', () => {
it('should render correctly', async () => {
const wrapper = mount(
......
......@@ -7,26 +7,8 @@ import { BrowserRouter } from 'react-router-dom'
import { mockedEcogesturesData } from 'tests/__mocks__/ecogesturesData.mock'
import { waitForComponentToPaint } from 'tests/__mocks__/testUtils'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
jest.mock('components/CommonKit/Icon/StyledIcon', () => () => (
<div id="StyledIcon" />
))
const mockImportIconById = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
}
})
describe('EcogestureCard component', () => {
it('should be rendered correctly', async () => {
mockImportIconById.mockReturnValueOnce('')
const wrapper = mount(
<BrowserRouter>
<EcogestureCard ecogesture={mockedEcogesturesData[0]} />
......@@ -36,7 +18,6 @@ describe('EcogestureCard component', () => {
expect(toJson(wrapper)).toMatchSnapshot()
})
it('should be with default icon', async () => {
mockImportIconById.mockReturnValue(undefined)
const wrapper = mount(
<BrowserRouter>
<EcogestureCard ecogesture={mockedEcogesturesData[0]} />
......
......@@ -292,15 +292,39 @@ exports[`EcogestureCard component should be rendered correctly 1`] = `
<div
className="ec-content"
>
<Component
<StyledIcon
className="Icon"
icon=""
icon="test-file-stub"
size={50}
>
<div
id="StyledIcon"
/>
</Component>
<Icon
aria-hidden={true}
className="Icon"
icon="test-file-stub"
size={50}
spin={false}
>
<Component
aria-hidden={true}
className="Icon styles__icon___23x3R"
height={50}
style={Object {}}
width={50}
>
<svg
aria-hidden={true}
className="Icon styles__icon___23x3R"
height={50}
style={Object {}}
width={50}
>
<use
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
</Icon>
</StyledIcon>
<div
className="ec-content-short-name text-15-bold"
>
......@@ -312,56 +336,176 @@ exports[`EcogestureCard component should be rendered correctly 1`] = `
<div
className="thunder"
>
<Component
<StyledIcon
className="star"
icon="test-file-stub"
key="1"
size={15}
>
<div
id="StyledIcon"
/>
</Component>
<Component
<Icon
aria-hidden={true}
className="star"
icon="test-file-stub"
size={15}
spin={false}
>
<Component
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<svg
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<use
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
</Icon>
</StyledIcon>
<StyledIcon
className="star"
icon="test-file-stub"
key="2"
size={15}
>
<div
id="StyledIcon"
/>
</Component>
<Component
<Icon
aria-hidden={true}
className="star"
icon="test-file-stub"
size={15}
spin={false}
>
<Component
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<svg
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<use
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
</Icon>
</StyledIcon>
<StyledIcon
className="star"
icon="test-file-stub"
key="3"
size={15}
>
<div
id="StyledIcon"
/>
</Component>
<Component
<Icon
aria-hidden={true}
className="star"
icon="test-file-stub"
size={15}
spin={false}
>
<Component
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<svg
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<use
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
</Icon>
</StyledIcon>
<StyledIcon
className="star"
icon="test-file-stub"
key="4"
size={15}
>
<div
id="StyledIcon"
/>
</Component>
<Component
<Icon
aria-hidden={true}
className="star"
icon="test-file-stub"
size={15}
spin={false}
>
<Component
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<svg
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<use
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
</Icon>
</StyledIcon>
<StyledIcon
className="star"
icon="test-file-stub"
key="5"
size={15}
>
<div
id="StyledIcon"
/>
</Component>
<Icon
aria-hidden={true}
className="star"
icon="test-file-stub"
size={15}
spin={false}
>
<Component
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<svg
aria-hidden={true}
className="star styles__icon___23x3R"
height={15}
style={Object {}}
width={15}
>
<use
xlinkHref="#test-file-stub"
/>
</svg>
</Component>
</Icon>
</StyledIcon>
</div>
</EfficiencyRating>
</div>
......
......@@ -4,16 +4,11 @@ import toJson from 'enzyme-to-json'
import React from 'react'
import EcogestureEmptyList from './EcogestureEmptyList'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockedNavigate = jest.fn()
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useNavigate: () => mockedNavigate,
}))
const mockedNavigate = jest.fn()
const mockChangeTab = jest.fn()
const mockHandleClick = jest.fn()
......
......@@ -4,27 +4,6 @@ import toJson from 'enzyme-to-json'
import React from 'react'
import EcogestureInitModal from './EcogestureInitModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockImportIconById = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
}
})
const mockHistoryPush = jest.fn()
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useNavigate: () => ({
push: mockHistoryPush,
}),
}))
const mockHandleClose = jest.fn()
const mockHandleLaunchForm = jest.fn()
describe('EcogestureInitModal component', () => {
......
......@@ -10,11 +10,6 @@ import { createMockEcolyoStore } from 'tests/__mocks__/store'
import { waitForComponentToPaint } from 'tests/__mocks__/testUtils'
import EcogestureList from './EcogestureList'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
jest.mock(
'components/Ecogesture/EcogestureCard/EcogestureCard',
() => 'mock-ecogesturecard'
......
......@@ -6,20 +6,6 @@ import { mockedEcogesturesData } from 'tests/__mocks__/ecogesturesData.mock'
import { createMockEcolyoStore } from 'tests/__mocks__/store'
import { waitForComponentToPaint } from 'tests/__mocks__/testUtils'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockImportIconById = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
}
})
describe('EcogestureModal component', () => {
it('should be rendered correctly', async () => {
const store = createMockEcolyoStore()
......
......@@ -3,20 +3,6 @@ import toJson from 'enzyme-to-json'
import React from 'react'
import EcogestureReinitModal from './EcogestureReinitModal'
jest.mock('cozy-ui/transpiled/react/I18n', () => ({
useI18n: jest.fn(() => ({
t: (str: string) => str,
})),
}))
const mockImportIconById = jest.fn()
jest.mock('utils/utils', () => {
return {
importIconById: jest.fn(() => {
return mockImportIconById
}),
}
})
describe('EcogestureReinitModal component', () => {
it('should be rendered correctly', async () => {
const wrapper = mount(
......