From e9157166d9db91c1d0c1d82b5c4a87180744788e Mon Sep 17 00:00:00 2001 From: literat Date: Tue, 17 Dec 2024 14:03:06 +0100 Subject: [PATCH] fixup! Refactor(web-react): Use `@local/tests` path alias in tests --- .../Accordion/__tests__/AccordionContent.test.tsx | 4 +--- .../Accordion/__tests__/AccordionHeader.test.tsx | 5 +---- .../Accordion/__tests__/AccordionItem.test.tsx | 5 +---- .../__tests__/UncontrolledAccordion.test.tsx | 5 +---- .../src/components/Alert/__tests__/Alert.test.tsx | 12 +++++++----- .../Breadcrumbs/__tests__/Breadcrumbs.test.tsx | 5 +---- .../Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx | 5 +---- .../src/components/Button/__tests__/Button.test.tsx | 12 ++++++------ .../ButtonLink/__tests__/ButtonLink.test.tsx | 12 ++++++------ .../src/components/Card/__tests__/Card.test.tsx | 4 +--- .../Dropdown/__tests__/DropdownTrigger.test.tsx | 2 +- .../FileUploader/__tests__/FileUploader.test.tsx | 2 +- .../__tests__/FileUploaderInput.test.tsx | 2 +- .../FileUploader/__tests__/FileUploaderList.test.tsx | 2 +- .../__tests__/HeaderDialogCloseButton.test.tsx | 2 +- .../Header/__tests__/HeaderMobileActions.test.tsx | 2 +- .../src/components/Icon/__tests__/Icon.test.tsx | 2 +- .../src/components/Item/__tests__/Item.test.tsx | 2 +- .../Modal/__tests__/ModalCloseButton.test.tsx | 2 +- .../components/Modal/__tests__/ModalHeader.test.tsx | 2 +- .../__tests__/PaginationButtonLink.test.tsx | 2 +- .../Pagination/__tests__/PaginationLinkNext.test.tsx | 2 +- .../__tests__/PaginationLinkPrevious.test.tsx | 2 +- .../__tests__/UncontrolledPagination.test.tsx | 2 +- .../src/components/Select/__tests__/Select.test.tsx | 2 +- .../components/Spinner/__tests__/Spinner.test.tsx | 2 +- .../TextField/__tests__/TextField.test.tsx | 2 +- .../src/components/Toast/__tests__/ToastBar.test.tsx | 2 +- .../Toast/__tests__/UncontrolledToast.test.tsx | 2 +- .../__tests__/UNSTABLE_Avatar.test.tsx | 2 +- 30 files changed, 46 insertions(+), 63 deletions(-) diff --git a/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx b/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx index fa2f98ef81..84c503abdb 100644 --- a/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/AccordionContent.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import AccordionContent from '../AccordionContent'; import AccordionItem from '../AccordionItem'; diff --git a/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx b/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx index cd07f8698e..f693c5fd20 100644 --- a/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/AccordionHeader.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import AccordionHeader from '../AccordionHeader'; import AccordionItem from '../AccordionItem'; diff --git a/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx b/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx index 29ed0baee5..9454034d09 100644 --- a/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/AccordionItem.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import Accordion from '../Accordion'; import AccordionContent from '../AccordionContent'; import AccordionHeader from '../AccordionHeader'; diff --git a/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx b/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx index 63fdb27a50..d5712f35c5 100644 --- a/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx +++ b/packages/web-react/src/components/Accordion/__tests__/UncontrolledAccordion.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import AccordionContent from '../AccordionContent'; import AccordionHeader from '../AccordionHeader'; import AccordionItem from '../AccordionItem'; diff --git a/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx b/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx index 9051d37362..9e5f34bab7 100644 --- a/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx +++ b/packages/web-react/src/components/Alert/__tests__/Alert.test.tsx @@ -1,11 +1,13 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { emotionColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + useIconMock, + classNamePrefixProviderTest, + emotionColorPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import Alert from '../Alert'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx b/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx index 2e387bd727..a1548a1bdd 100644 --- a/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx +++ b/packages/web-react/src/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import Breadcrumbs from '../Breadcrumbs'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx b/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx index 16eb17ec51..dba47e82b4 100644 --- a/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx +++ b/packages/web-react/src/components/Breadcrumbs/__tests__/BreadcrumbsItem.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import BreadcrumbsItem from '../BreadcrumbsItem'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Button/__tests__/Button.test.tsx b/packages/web-react/src/components/Button/__tests__/Button.test.tsx index 98a4e55a82..127a9212de 100644 --- a/packages/web-react/src/components/Button/__tests__/Button.test.tsx +++ b/packages/web-react/src/components/Button/__tests__/Button.test.tsx @@ -1,16 +1,16 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { + useIconMock, + classNamePrefixProviderTest, actionButtonColorPropsTest, emotionColorPropsTest, sizePropsTest, -} from '../../../../tests/providerTests/dictionaryPropsTest'; -import { loadingPropsTest } from '../../../../tests/providerTests/loadingPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; + loadingPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import Button from '../Button'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx b/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx index 012c6e3ccc..aaf37dff37 100644 --- a/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx +++ b/packages/web-react/src/components/ButtonLink/__tests__/ButtonLink.test.tsx @@ -1,16 +1,16 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { + useIconMock, + classNamePrefixProviderTest, actionButtonColorPropsTest, emotionColorPropsTest, sizePropsTest, -} from '../../../../tests/providerTests/dictionaryPropsTest'; -import { loadingPropsTest } from '../../../../tests/providerTests/loadingPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; + loadingPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import ButtonLink from '../ButtonLink'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Card/__tests__/Card.test.tsx b/packages/web-react/src/components/Card/__tests__/Card.test.tsx index 354dbc584e..67e84fc871 100644 --- a/packages/web-react/src/components/Card/__tests__/Card.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/Card.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, restPropsTest, stylePropsTest } from '@local/tests'; import Card from '../Card'; describe('Card', () => { diff --git a/packages/web-react/src/components/Dropdown/__tests__/DropdownTrigger.test.tsx b/packages/web-react/src/components/Dropdown/__tests__/DropdownTrigger.test.tsx index 2e3ff42a65..152ad1947c 100644 --- a/packages/web-react/src/components/Dropdown/__tests__/DropdownTrigger.test.tsx +++ b/packages/web-react/src/components/Dropdown/__tests__/DropdownTrigger.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import { Button } from '../../Button'; diff --git a/packages/web-react/src/components/FileUploader/__tests__/FileUploader.test.tsx b/packages/web-react/src/components/FileUploader/__tests__/FileUploader.test.tsx index 62eb5c2d25..605665a0dd 100644 --- a/packages/web-react/src/components/FileUploader/__tests__/FileUploader.test.tsx +++ b/packages/web-react/src/components/FileUploader/__tests__/FileUploader.test.tsx @@ -1,6 +1,6 @@ import '@testing-library/jest-dom'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderInput.test.tsx b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderInput.test.tsx index 3c4c84df3f..8fd3f4be68 100644 --- a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderInput.test.tsx +++ b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderInput.test.tsx @@ -1,7 +1,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import { renderToString } from 'react-dom/server'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; diff --git a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx index 832353d813..4b10324e1b 100644 --- a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx +++ b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderList.test.tsx @@ -1,6 +1,6 @@ import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { SpiritFileUploaderAttachmentProps } from '../../../types'; import FileUploader from '../FileUploader'; import FileUploaderList from '../FileUploaderList'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx index 1680db3025..0806ab7880 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx index 421fadb3bc..69e07f2c8e 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx b/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx index 98edf28295..f44a25f1d0 100644 --- a/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx +++ b/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import Icon from '../Icon'; diff --git a/packages/web-react/src/components/Item/__tests__/Item.test.tsx b/packages/web-react/src/components/Item/__tests__/Item.test.tsx index 0280ac5b49..d928349914 100644 --- a/packages/web-react/src/components/Item/__tests__/Item.test.tsx +++ b/packages/web-react/src/components/Item/__tests__/Item.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; import { SpiritItemProps } from '../../../types'; diff --git a/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx index 62483f3268..9c25d3895a 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Modal/__tests__/ModalHeader.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalHeader.test.tsx index 9a6fe4cbf6..b2d80fb47e 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalHeader.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalHeader.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationButtonLink.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationButtonLink.test.tsx index 2e20764ffe..e5c2579dd3 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationButtonLink.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationButtonLink.test.tsx @@ -1,5 +1,5 @@ import '@testing-library/jest-dom'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationLinkNext.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationLinkNext.test.tsx index ed974d4990..7790e9952e 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationLinkNext.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationLinkNext.test.tsx @@ -1,5 +1,5 @@ import '@testing-library/jest-dom'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationLinkPrevious.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationLinkPrevious.test.tsx index 3abb54123e..9b77d6e01c 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationLinkPrevious.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationLinkPrevious.test.tsx @@ -1,5 +1,5 @@ import '@testing-library/jest-dom'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx b/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx index b3cba2b5be..41e269569a 100644 --- a/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/UncontrolledPagination.test.tsx @@ -1,6 +1,6 @@ import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import UncontrolledPagination from '../UncontrolledPagination'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Select/__tests__/Select.test.tsx b/packages/web-react/src/components/Select/__tests__/Select.test.tsx index e9c3a030b9..c886aa09fa 100644 --- a/packages/web-react/src/components/Select/__tests__/Select.test.tsx +++ b/packages/web-react/src/components/Select/__tests__/Select.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; diff --git a/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx b/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx index f891cadc56..721ddb41e5 100644 --- a/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx +++ b/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { textColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx b/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx index aa32b048d3..eb2b83bfec 100644 --- a/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx +++ b/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; diff --git a/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx b/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx index 41ea9bdb33..b4e18470ca 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; diff --git a/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx b/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx index e1c99da864..95d9dac81b 100644 --- a/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/UncontrolledToast.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { ToastLinkProps } from '../../../types'; import { ToastContext } from '../ToastContext'; import UncontrolledToast from '../UncontrolledToast'; diff --git a/packages/web-react/src/components/UNSTABLE_Avatar/__tests__/UNSTABLE_Avatar.test.tsx b/packages/web-react/src/components/UNSTABLE_Avatar/__tests__/UNSTABLE_Avatar.test.tsx index a8ea426908..4b7aca8933 100644 --- a/packages/web-react/src/components/UNSTABLE_Avatar/__tests__/UNSTABLE_Avatar.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_Avatar/__tests__/UNSTABLE_Avatar.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '../../../../tests/mocks/hooksMock'; +import { useIconMock } from '@local/tests'; import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; import { sizeExtendedPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; import { restPropsTest } from '../../../../tests/providerTests/restPropsTest';