From 430ffeebca1921baf9e1794b2b2d8b6aa38b8671 Mon Sep 17 00:00:00 2001 From: literat Date: Tue, 17 Dec 2024 16:20:57 +0100 Subject: [PATCH] fixup! Refactor(web-react): Use `@local/tests` path alias in tests --- .../Card/__tests__/CardArtwork.test.tsx | 5 +---- .../components/Card/__tests__/CardBody.test.tsx | 4 +--- .../Card/__tests__/CardEyebrow.test.tsx | 4 +--- .../Card/__tests__/CardFooter.test.tsx | 5 +---- .../components/Card/__tests__/CardLink.test.tsx | 4 +--- .../components/Card/__tests__/CardLogo.test.tsx | 4 +--- .../components/Card/__tests__/CardMedia.test.tsx | 5 +---- .../components/Card/__tests__/CardTitle.test.tsx | 4 +--- .../Checkbox/__tests__/Checkbox.test.tsx | 16 +++++++++------- .../Collapse/__tests__/Collapse.test.tsx | 4 +--- .../__tests__/UncontrolledCollapse.test.tsx | 4 +--- .../Container/__tests__/Container.test.tsx | 4 +--- .../Divider/__tests__/Divider.test.tsx | 4 +--- .../Dropdown/__tests__/Dropdown.test.tsx | 4 +--- .../Dropdown/__tests__/DropdownPopover.test.tsx | 4 +--- .../Dropdown/__tests__/DropdownTrigger.test.tsx | 4 +--- .../FieldGroup/__tests__/FieldGroup.test.tsx | 12 +++++++----- .../FileUploader/__tests__/FileUploader.test.tsx | 5 +---- .../__tests__/FileUploaderInput.test.tsx | 5 +---- .../src/components/Flex/__tests__/Flex.test.tsx | 4 +--- .../components/Footer/__tests__/Footer.test.tsx | 3 +-- .../src/components/Grid/__tests__/Grid.test.tsx | 4 +--- .../components/Grid/__tests__/GridItem.test.tsx | 4 +--- .../components/Header/__tests__/Header.test.tsx | 4 +--- .../Header/__tests__/HeaderButton.test.tsx | 4 +--- .../__tests__/HeaderDesktopActions.test.tsx | 4 +--- .../Header/__tests__/HeaderDialog.test.tsx | 4 +--- .../__tests__/HeaderDialogActions.test.tsx | 4 +--- .../Header/__tests__/HeaderDialogButton.test.tsx | 4 +--- .../__tests__/HeaderDialogCloseButton.test.tsx | 5 +---- .../Header/__tests__/HeaderDialogLink.test.tsx | 4 +--- .../Header/__tests__/HeaderDialogNav.test.tsx | 4 +--- .../__tests__/HeaderDialogNavItem.test.tsx | 4 +--- .../Header/__tests__/HeaderDialogText.test.tsx | 4 +--- .../Header/__tests__/HeaderLink.test.tsx | 4 +--- .../__tests__/HeaderMobileActions.test.tsx | 5 +---- .../Header/__tests__/HeaderNav.test.tsx | 4 +--- .../Header/__tests__/HeaderNavItem.test.tsx | 4 +--- .../Heading/__tests__/Heading.test.tsx | 11 +++++++---- .../src/components/Icon/__tests__/Icon.test.tsx | 4 +--- .../src/components/Item/__tests__/Item.test.tsx | 4 +--- .../src/components/Link/__tests__/Link.test.tsx | 5 +---- .../components/Modal/__tests__/Modal.test.tsx | 4 +--- .../Modal/__tests__/ModalBody.test.tsx | 4 +--- .../Modal/__tests__/ModalCloseButton.test.tsx | 5 +---- .../Modal/__tests__/ModalDialog.test.tsx | 4 +--- .../Modal/__tests__/ModalFooter.test.tsx | 4 +--- .../Modal/__tests__/ModalHeader.test.tsx | 5 +---- .../Pagination/__tests__/Pagination.test.tsx | 4 +--- .../__tests__/PaginationButtonLink.test.tsx | 5 +---- .../Pagination/__tests__/PaginationItem.test.tsx | 4 +--- .../Pagination/__tests__/PaginationLink.test.tsx | 4 +--- .../__tests__/PaginationLinkNext.test.tsx | 5 +---- .../__tests__/PaginationLinkPrevious.test.tsx | 5 +---- .../PartnerLogo/__tests__/PartnerLogo.test.tsx | 4 +--- .../src/components/Pill/__tests__/Pill.test.tsx | 5 +---- .../ProductLogo/__tests__/ProductLogo.test.tsx | 4 +--- .../components/Radio/__tests__/Radio.test.tsx | 14 ++++++++------ .../ScrollView/__tests__/ScrollView.test.tsx | 4 +--- .../components/Select/__tests__/Select.test.tsx | 16 +++++++++------- .../Spinner/__tests__/Spinner.test.tsx | 12 +++++++----- .../components/Stack/__tests__/Stack.test.tsx | 4 +--- .../components/Tabs/__tests__/TabItem.test.tsx | 5 +---- .../components/Tabs/__tests__/TabLink.test.tsx | 3 +-- .../components/Tabs/__tests__/TabList.test.tsx | 3 +-- .../components/Tabs/__tests__/TabPane.test.tsx | 5 +---- .../src/components/Tag/__tests__/Tag.test.tsx | 11 +++++++---- .../src/components/Text/__tests__/Text.test.tsx | 11 +++++++---- .../TextArea/__tests__/TextArea.test.tsx | 14 ++++++++------ .../TextField/__tests__/TextField.test.tsx | 14 ++++++++------ .../__tests__/TextFieldBase.test.tsx | 2 +- .../components/Toast/__tests__/Toast.test.tsx | 4 +--- .../components/Toast/__tests__/ToastBar.test.tsx | 5 +---- .../Toast/__tests__/ToastBarLink.test.tsx | 3 +-- .../Toast/__tests__/ToastBarMessage.test.tsx | 3 +-- .../Tooltip/__tests__/Tooltip.test.tsx | 3 +-- .../Tooltip/__tests__/TooltipPopover.test.tsx | 4 +--- .../Tooltip/__tests__/TooltipTrigger.test.tsx | 3 +-- .../__tests__/UncontrolledTooltip.test.tsx | 3 +-- .../__tests__/UNSTABLE_ActionLayout.test.tsx | 4 +--- .../__tests__/UNSTABLE_Avatar.test.tsx | 12 +++++++----- .../__tests__/UNSTABLE_EmptyState.test.tsx | 4 +--- .../UNSTABLE_EmptyStateSection.test.tsx | 4 +--- .../__tests__/UNSTABLE_Slider.test.tsx | 3 +-- .../__tests__/UNSTABLE_Toggle.test.tsx | 12 +++++++----- .../__tests__/UNSTABLE_Truncate.test.tsx | 4 +--- .../__tests__/VisuallyHidden.test.tsx | 4 +--- 87 files changed, 166 insertions(+), 295 deletions(-) diff --git a/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx b/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx index c7917c638b..8eae315293 100644 --- a/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardArtwork.test.tsx @@ -1,10 +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 { alignmentXPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, alignmentXPropsTest, restPropsTest, stylePropsTest } from '@local/tests'; import CardArtwork from '../CardArtwork'; describe('CardArtwork', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardBody.test.tsx b/packages/web-react/src/components/Card/__tests__/CardBody.test.tsx index 90b512df23..beb167644a 100644 --- a/packages/web-react/src/components/Card/__tests__/CardBody.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardBody.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 CardBody from '../CardBody'; describe('CardBody', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx b/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx index 1fdf9d32a1..b543de6be6 100644 --- a/packages/web-react/src/components/Card/__tests__/CardEyebrow.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardEyebrow.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 CardEyebrow from '../CardEyebrow'; describe('CardEyebrow', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardFooter.test.tsx b/packages/web-react/src/components/Card/__tests__/CardFooter.test.tsx index 9833c193e0..f05c56496a 100644 --- a/packages/web-react/src/components/Card/__tests__/CardFooter.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardFooter.test.tsx @@ -1,10 +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 { alignmentXPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, alignmentXPropsTest, restPropsTest, stylePropsTest } from '@local/tests'; import CardFooter from '../CardFooter'; describe('CardFooter', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardLink.test.tsx b/packages/web-react/src/components/Card/__tests__/CardLink.test.tsx index e9afb8ac78..48be0def5a 100644 --- a/packages/web-react/src/components/Card/__tests__/CardLink.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardLink.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 CardLink from '../CardLink'; describe('CardLink', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx b/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx index aa66f375d8..56b2b145b9 100644 --- a/packages/web-react/src/components/Card/__tests__/CardLogo.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardLogo.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 CardLogo from '../CardLogo'; describe('CardLogo', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx b/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx index a19c1189d6..dc46a416bc 100644 --- a/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardMedia.test.tsx @@ -1,10 +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 { sizePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, sizePropsTest, restPropsTest, stylePropsTest } from '@local/tests'; import CardMedia from '../CardMedia'; describe('CardMedia', () => { diff --git a/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx b/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx index 8c2d84d575..d3c4b221ec 100644 --- a/packages/web-react/src/components/Card/__tests__/CardTitle.test.tsx +++ b/packages/web-react/src/components/Card/__tests__/CardTitle.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 CardTitle from '../CardTitle'; describe('CardTitle', () => { diff --git a/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx b/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx index 689a232407..dfcd15c43a 100644 --- a/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx +++ b/packages/web-react/src/components/Checkbox/__tests__/Checkbox.test.tsx @@ -1,13 +1,15 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { itemPropsTest } from '../../../../tests/providerTests/itemPropsTest'; -import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; -import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; +import { + classNamePrefixProviderTest, + validationStatePropsTest, + itemPropsTest, + requiredPropsTest, + restPropsTest, + stylePropsTest, + validationTextPropsTest, +} from '@local/tests'; import Checkbox from '../Checkbox'; describe('Checkbox', () => { diff --git a/packages/web-react/src/components/Collapse/__tests__/Collapse.test.tsx b/packages/web-react/src/components/Collapse/__tests__/Collapse.test.tsx index 5566f0d389..379d083728 100644 --- a/packages/web-react/src/components/Collapse/__tests__/Collapse.test.tsx +++ b/packages/web-react/src/components/Collapse/__tests__/Collapse.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { act, fireEvent, render, screen } from '@testing-library/react'; import React, { useState } 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 { Button } from '../../Button'; import Collapse from '../Collapse'; diff --git a/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx b/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx index 210f5f6c98..006e4a6e39 100644 --- a/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx +++ b/packages/web-react/src/components/Collapse/__tests__/UncontrolledCollapse.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, 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 { Button } from '../../Button'; import UncontrolledCollapse from '../UncontrolledCollapse'; diff --git a/packages/web-react/src/components/Container/__tests__/Container.test.tsx b/packages/web-react/src/components/Container/__tests__/Container.test.tsx index ce370e6850..c4302df3bc 100644 --- a/packages/web-react/src/components/Container/__tests__/Container.test.tsx +++ b/packages/web-react/src/components/Container/__tests__/Container.test.tsx @@ -1,9 +1,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import '@testing-library/jest-dom'; -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 Container from '../Container'; describe('Container', () => { diff --git a/packages/web-react/src/components/Divider/__tests__/Divider.test.tsx b/packages/web-react/src/components/Divider/__tests__/Divider.test.tsx index 9de9e00f24..a444538066 100644 --- a/packages/web-react/src/components/Divider/__tests__/Divider.test.tsx +++ b/packages/web-react/src/components/Divider/__tests__/Divider.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 Divider from '../Divider'; describe('Divider', () => { diff --git a/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx b/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx index 8712c22db1..829d0d6264 100644 --- a/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx +++ b/packages/web-react/src/components/Dropdown/__tests__/Dropdown.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen, fireEvent } 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 Dropdown from '../Dropdown'; import DropdownPopover from '../DropdownPopover'; import DropdownTrigger from '../DropdownTrigger'; diff --git a/packages/web-react/src/components/Dropdown/__tests__/DropdownPopover.test.tsx b/packages/web-react/src/components/Dropdown/__tests__/DropdownPopover.test.tsx index 47dae94795..9e4ee91748 100644 --- a/packages/web-react/src/components/Dropdown/__tests__/DropdownPopover.test.tsx +++ b/packages/web-react/src/components/Dropdown/__tests__/DropdownPopover.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 DropdownPopover from '../DropdownPopover'; describe('DropdownPopover', () => { 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 152ad1947c..3bcbd3580a 100644 --- a/packages/web-react/src/components/Dropdown/__tests__/DropdownTrigger.test.tsx +++ b/packages/web-react/src/components/Dropdown/__tests__/DropdownTrigger.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, restPropsTest, stylePropsTest } from '@local/tests'; import { Button } from '../../Button'; import DropdownTrigger from '../DropdownTrigger'; diff --git a/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx b/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx index 94658cf061..3ca128da89 100644 --- a/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx +++ b/packages/web-react/src/components/FieldGroup/__tests__/FieldGroup.test.tsx @@ -1,11 +1,13 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; -import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; +import { + classNamePrefixProviderTest, + validationStatePropsTest, + restPropsTest, + stylePropsTest, + validationTextPropsTest, +} from '@local/tests'; import FieldGroup from '../FieldGroup'; describe('FieldGroup', () => { 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 605665a0dd..f01c61e0d2 100644 --- a/packages/web-react/src/components/FileUploader/__tests__/FileUploader.test.tsx +++ b/packages/web-react/src/components/FileUploader/__tests__/FileUploader.test.tsx @@ -1,9 +1,6 @@ import '@testing-library/jest-dom'; import React from 'react'; -import { useIconMock } from '@local/tests'; -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 FileUploader from '../FileUploader'; jest.mock('../../../hooks', () => useIconMock); 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 8fd3f4be68..4bdd074d4f 100644 --- a/packages/web-react/src/components/FileUploader/__tests__/FileUploaderInput.test.tsx +++ b/packages/web-react/src/components/FileUploader/__tests__/FileUploaderInput.test.tsx @@ -1,10 +1,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import { renderToString } from 'react-dom/server'; -import { useIconMock } from '@local/tests'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; +import { useIconMock, classNamePrefixProviderTest, restPropsTest, validationTextPropsTest } from '@local/tests'; import FileUploaderInput from '../FileUploaderInput'; import '@testing-library/jest-dom'; diff --git a/packages/web-react/src/components/Flex/__tests__/Flex.test.tsx b/packages/web-react/src/components/Flex/__tests__/Flex.test.tsx index f33aeeaad8..69933980a8 100644 --- a/packages/web-react/src/components/Flex/__tests__/Flex.test.tsx +++ b/packages/web-react/src/components/Flex/__tests__/Flex.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 Flex from '../Flex'; describe('Flex', () => { diff --git a/packages/web-react/src/components/Footer/__tests__/Footer.test.tsx b/packages/web-react/src/components/Footer/__tests__/Footer.test.tsx index bd391fc54d..b4cebd091b 100644 --- a/packages/web-react/src/components/Footer/__tests__/Footer.test.tsx +++ b/packages/web-react/src/components/Footer/__tests__/Footer.test.tsx @@ -1,8 +1,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import '@testing-library/jest-dom'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import { BackgroundColors } from '../../../constants'; import Footer from '../Footer'; diff --git a/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx b/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx index 784e08bff0..c0f2a11727 100644 --- a/packages/web-react/src/components/Grid/__tests__/Grid.test.tsx +++ b/packages/web-react/src/components/Grid/__tests__/Grid.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 Grid from '../Grid'; describe('Grid', () => { diff --git a/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx b/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx index 19591a0f4b..13a80a22a5 100644 --- a/packages/web-react/src/components/Grid/__tests__/GridItem.test.tsx +++ b/packages/web-react/src/components/Grid/__tests__/GridItem.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 GridItem from '../GridItem'; describe('Grid', () => { diff --git a/packages/web-react/src/components/Header/__tests__/Header.test.tsx b/packages/web-react/src/components/Header/__tests__/Header.test.tsx index f2095346e4..d043013964 100644 --- a/packages/web-react/src/components/Header/__tests__/Header.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/Header.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 Header from '../Header'; describe('Header', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx index da594762a7..07365d506c 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderButton.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 HeaderButton from '../HeaderButton'; describe('HeaderButton', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx index 4961d5fdc0..686f12a7bc 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDesktopActions.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 HeaderDesktopActions from '../HeaderDesktopActions'; describe('HeaderDesktopActions', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx index a0036542b8..0ec5189fc7 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialog.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialog.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 HeaderDialog from '../HeaderDialog'; describe('HeaderDialog', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx index e1708dfd97..567a86d1d6 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogActions.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 HeaderDialogActions from '../HeaderDialogActions'; describe('HeaderDialogActions', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx index 0866e38b4a..0820c3874c 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogButton.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 HeaderDialogButton from '../HeaderDialogButton'; describe('HeaderDialogButton', () => { 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 0806ab7880..999d0acc4f 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogCloseButton.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -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 HeaderDialogCloseButton from '../HeaderDialogCloseButton'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx index b217c0b901..73d2919872 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogLink.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 HeaderDialogLink from '../HeaderDialogLink'; describe('HeaderDialogLink', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx index 9dec6b659d..6fe793d6c5 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogNav.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 HeaderDialogNav from '../HeaderDialogNav'; describe('HeaderDialogNav', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx index 3006fcc70c..978de4ece9 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogNavItem.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 HeaderDialogNavItem from '../HeaderDialogNavItem'; describe('HeaderDialogNavItem', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx index 80a0222448..85fb4a715d 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderDialogText.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderDialogText.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 HeaderDialogText from '../HeaderDialogText'; describe('HeaderDialogText', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx index 627a7dcde6..0ab2b66b45 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderLink.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderLink.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 HeaderLink from '../HeaderLink'; describe('HeaderLink', () => { 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 69e07f2c8e..ecb7d9ff37 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderMobileActions.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -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 { HEADER_MENU_TOGGLE_LABEL_DEFAULT } from '../constants'; import HeaderMobileActions from '../HeaderMobileActions'; diff --git a/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx index d66af497a2..ef556462d4 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderNav.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderNav.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 HeaderNav from '../HeaderNav'; describe('HeaderNav', () => { diff --git a/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx b/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx index 45958e8f8b..e52b1d2ba5 100644 --- a/packages/web-react/src/components/Header/__tests__/HeaderNavItem.test.tsx +++ b/packages/web-react/src/components/Header/__tests__/HeaderNavItem.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 HeaderNavItem from '../HeaderNavItem'; describe('HeaderNavItem', () => { diff --git a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx index bba2d52418..faeaaecec6 100644 --- a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx +++ b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx @@ -1,10 +1,13 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import '@testing-library/jest-dom'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { sizeExtendedPropsTest, sizePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + classNamePrefixProviderTest, + sizeExtendedPropsTest, + sizePropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import { SizesDictionaryType, SizeExtendedDictionaryType, EmphasisDictionaryType } from '../../../types'; import Heading from '../Heading'; import headingSizeDataProvider from './headingSizeDataProvider'; 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 f44a25f1d0..feb621f58a 100644 --- a/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx +++ b/packages/web-react/src/components/Icon/__tests__/Icon.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, restPropsTest, stylePropsTest } from '@local/tests'; import Icon from '../Icon'; jest.mock('../../../hooks', () => useIconMock); 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 d928349914..94bc90a151 100644 --- a/packages/web-react/src/components/Item/__tests__/Item.test.tsx +++ b/packages/web-react/src/components/Item/__tests__/Item.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { useIconMock, restPropsTest, stylePropsTest } from '@local/tests'; import { SpiritItemProps } from '../../../types'; import Item from '../Item'; diff --git a/packages/web-react/src/components/Link/__tests__/Link.test.tsx b/packages/web-react/src/components/Link/__tests__/Link.test.tsx index 031dca39e0..0bf31fd926 100644 --- a/packages/web-react/src/components/Link/__tests__/Link.test.tsx +++ b/packages/web-react/src/components/Link/__tests__/Link.test.tsx @@ -1,10 +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 { actionLinkColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, actionLinkColorPropsTest, restPropsTest, stylePropsTest } from '@local/tests'; import { ActionLinkColorsDictionaryType } from '../../../types'; import Link from '../Link'; import linkPropsDataProvider from './linkPropsDataProvider'; diff --git a/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx b/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx index e3305c0e10..316edbd84e 100644 --- a/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/Modal.test.tsx @@ -1,9 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, 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 { SpiritModalProps } from '../../../types'; import Modal from '../Modal'; diff --git a/packages/web-react/src/components/Modal/__tests__/ModalBody.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalBody.test.tsx index 79244468da..c666ee0f6d 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalBody.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalBody.test.tsx @@ -1,7 +1,5 @@ import '@testing-library/jest-dom'; -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 ModalBody from '../ModalBody'; describe('ModalBody', () => { 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 9c25d3895a..9a9f66ce2c 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalCloseButton.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -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 ModalCloseButton from '../ModalCloseButton'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx index 456622573b..c1762f616a 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalDialog.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalDialog.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 ModalDialog from '../ModalDialog'; describe('ModalDialog', () => { diff --git a/packages/web-react/src/components/Modal/__tests__/ModalFooter.test.tsx b/packages/web-react/src/components/Modal/__tests__/ModalFooter.test.tsx index d4319aa0ac..23d2784cad 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalFooter.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalFooter.test.tsx @@ -1,7 +1,5 @@ import '@testing-library/jest-dom'; -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 ModalFooter from '../ModalFooter'; describe('ModalFooter', () => { 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 b2d80fb47e..1cb3e91456 100644 --- a/packages/web-react/src/components/Modal/__tests__/ModalHeader.test.tsx +++ b/packages/web-react/src/components/Modal/__tests__/ModalHeader.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -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 ModalHeader from '../ModalHeader'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx b/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx index 7ca2637797..50155eae18 100644 --- a/packages/web-react/src/components/Pagination/__tests__/Pagination.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/Pagination.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 Pagination from '../Pagination'; describe('Pagination', () => { 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 e5c2579dd3..3f6ba66439 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationButtonLink.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationButtonLink.test.tsx @@ -1,8 +1,5 @@ import '@testing-library/jest-dom'; -import { useIconMock } from '@local/tests'; -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 PaginationButtonLink from '../PaginationButtonLink'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx index 5e6526dfd1..828bfe1c67 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationItem.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationItem.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 PaginationItem from '../PaginationItem'; describe('PaginationItem', () => { diff --git a/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx b/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx index 8c842a3ccd..68fe3029f2 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationLink.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationLink.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 PaginationLink from '../PaginationLink'; describe('PaginationLink', () => { 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 7790e9952e..7fa9514fe9 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationLinkNext.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationLinkNext.test.tsx @@ -1,8 +1,5 @@ import '@testing-library/jest-dom'; -import { useIconMock } from '@local/tests'; -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 PaginationLinkNext from '../PaginationLinkNext'; jest.mock('../../../hooks', () => useIconMock); 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 9b77d6e01c..6e1185c72b 100644 --- a/packages/web-react/src/components/Pagination/__tests__/PaginationLinkPrevious.test.tsx +++ b/packages/web-react/src/components/Pagination/__tests__/PaginationLinkPrevious.test.tsx @@ -1,8 +1,5 @@ import '@testing-library/jest-dom'; -import { useIconMock } from '@local/tests'; -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 PaginationLinkPrevious from '../PaginationLinkPrevious'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/PartnerLogo/__tests__/PartnerLogo.test.tsx b/packages/web-react/src/components/PartnerLogo/__tests__/PartnerLogo.test.tsx index 82236cc247..53cd757a7f 100644 --- a/packages/web-react/src/components/PartnerLogo/__tests__/PartnerLogo.test.tsx +++ b/packages/web-react/src/components/PartnerLogo/__tests__/PartnerLogo.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 { Sizes } from '../../../constants'; import PartnerLogo from '../PartnerLogo'; diff --git a/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx b/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx index 7c1f61cbcf..e742bfd92d 100644 --- a/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx +++ b/packages/web-react/src/components/Pill/__tests__/Pill.test.tsx @@ -1,10 +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 { emotionColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, emotionColorPropsTest, restPropsTest, stylePropsTest } from '@local/tests'; import Pill from '../Pill'; describe('Pill', () => { diff --git a/packages/web-react/src/components/ProductLogo/__tests__/ProductLogo.test.tsx b/packages/web-react/src/components/ProductLogo/__tests__/ProductLogo.test.tsx index 06bd3af976..861946830c 100644 --- a/packages/web-react/src/components/ProductLogo/__tests__/ProductLogo.test.tsx +++ b/packages/web-react/src/components/ProductLogo/__tests__/ProductLogo.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 ProductLogo from '../ProductLogo'; describe('ProductLogo', () => { diff --git a/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx b/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx index 3eb1778e17..1dc92b3c1b 100644 --- a/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx +++ b/packages/web-react/src/components/Radio/__tests__/Radio.test.tsx @@ -1,12 +1,14 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { itemPropsTest } from '../../../../tests/providerTests/itemPropsTest'; -import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + classNamePrefixProviderTest, + validationStatePropsTest, + itemPropsTest, + requiredPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import Radio from '../Radio'; describe('Radio', () => { diff --git a/packages/web-react/src/components/ScrollView/__tests__/ScrollView.test.tsx b/packages/web-react/src/components/ScrollView/__tests__/ScrollView.test.tsx index e3a35a7b9c..e7e9582d10 100644 --- a/packages/web-react/src/components/ScrollView/__tests__/ScrollView.test.tsx +++ b/packages/web-react/src/components/ScrollView/__tests__/ScrollView.test.tsx @@ -1,8 +1,6 @@ import '@testing-library/jest-dom'; 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 ScrollView from '../ScrollView'; describe('ScrollView', () => { 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 c886aa09fa..428dfa3095 100644 --- a/packages/web-react/src/components/Select/__tests__/Select.test.tsx +++ b/packages/web-react/src/components/Select/__tests__/Select.test.tsx @@ -1,13 +1,15 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; -import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; +import { + useIconMock, + classNamePrefixProviderTest, + validationStatePropsTest, + requiredPropsTest, + restPropsTest, + stylePropsTest, + validationTextPropsTest, +} from '@local/tests'; import Select from '../Select'; jest.mock('../../../hooks', () => useIconMock); 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 721ddb41e5..0716e97143 100644 --- a/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx +++ b/packages/web-react/src/components/Spinner/__tests__/Spinner.test.tsx @@ -1,11 +1,13 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { textColorPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + useIconMock, + classNamePrefixProviderTest, + textColorPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import Spinner from '../Spinner'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx b/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx index bdee4e1312..31aac39d3b 100644 --- a/packages/web-react/src/components/Stack/__tests__/Stack.test.tsx +++ b/packages/web-react/src/components/Stack/__tests__/Stack.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 Stack from '../Stack'; describe('Stack', () => { diff --git a/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx index f290332ad8..2a055a3b8f 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabItem.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen, waitFor } 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 { withTabsContext } from '../../../../tests/testUtils/withTabsContext'; +import { classNamePrefixProviderTest, restPropsTest, stylePropsTest, withTabsContext } from '@local/tests'; import TabItem from '../TabItem'; describe('TabItem', () => { diff --git a/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx index d471dd732f..8bb47b8323 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabLink.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, stylePropsTest } from '@local/tests'; import TabLink from '../TabLink'; describe('TabLink', () => { diff --git a/packages/web-react/src/components/Tabs/__tests__/TabList.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabList.test.tsx index 3f554cfc4a..56370940f5 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabList.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabList.test.tsx @@ -1,8 +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 { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { classNamePrefixProviderTest, stylePropsTest } from '@local/tests'; import TabList from '../TabList'; import Tabs from '../Tabs'; diff --git a/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx b/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx index 780e34f02b..0f7e049e05 100644 --- a/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx +++ b/packages/web-react/src/components/Tabs/__tests__/TabPane.test.tsx @@ -1,10 +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 { withTabsContext } from '../../../../tests/testUtils/withTabsContext'; +import { classNamePrefixProviderTest, restPropsTest, stylePropsTest, withTabsContext } from '@local/tests'; import TabContent from '../TabContent'; import { TabsContextType } from '../TabContext'; import TabPane from '../TabPane'; diff --git a/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx b/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx index c63a16fa34..814184df5a 100644 --- a/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx +++ b/packages/web-react/src/components/Tag/__tests__/Tag.test.tsx @@ -1,10 +1,13 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { emotionColorPropsTest, sizeExtendedPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + classNamePrefixProviderTest, + emotionColorPropsTest, + sizeExtendedPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import Tag from '../Tag'; describe('Tag', () => { diff --git a/packages/web-react/src/components/Text/__tests__/Text.test.tsx b/packages/web-react/src/components/Text/__tests__/Text.test.tsx index ce836ccfaa..db4ebd2085 100644 --- a/packages/web-react/src/components/Text/__tests__/Text.test.tsx +++ b/packages/web-react/src/components/Text/__tests__/Text.test.tsx @@ -1,10 +1,13 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; import '@testing-library/jest-dom'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { sizeExtendedPropsTest, sizePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + classNamePrefixProviderTest, + sizeExtendedPropsTest, + sizePropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import { EmphasisDictionaryType, SizesDictionaryType, SizeExtendedDictionaryType } from '../../../types'; import Text from '../Text'; import textPropsDataProvider from './textPropsDataProvider'; diff --git a/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx b/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx index 52b11d3470..a334fba6b0 100644 --- a/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx +++ b/packages/web-react/src/components/TextArea/__tests__/TextArea.test.tsx @@ -1,12 +1,14 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; -import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; +import { + classNamePrefixProviderTest, + validationStatePropsTest, + requiredPropsTest, + restPropsTest, + stylePropsTest, + validationTextPropsTest, +} from '@local/tests'; import TextArea from '../TextArea'; describe('TextArea', () => { 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 eb2b83bfec..dea922bbab 100644 --- a/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx +++ b/packages/web-react/src/components/TextField/__tests__/TextField.test.tsx @@ -1,12 +1,14 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; -import { validationTextPropsTest } from '../../../../tests/providerTests/validationTextPropsTest'; +import { + useIconMock, + classNamePrefixProviderTest, + validationStatePropsTest, + restPropsTest, + stylePropsTest, + validationTextPropsTest, +} from '@local/tests'; import { TextFieldType } from '../../../types'; import TextField from '../TextField'; diff --git a/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx b/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx index 68f4d00866..384d470a5c 100644 --- a/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx +++ b/packages/web-react/src/components/TextFieldBase/__tests__/TextFieldBase.test.tsx @@ -1,7 +1,7 @@ import '@testing-library/jest-dom'; import { render } from '@testing-library/react'; import React from 'react'; -import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; +import { requiredPropsTest } from '@local/tests'; import { TextFieldType } from '../../../types'; import TextFieldBase from '../TextFieldBase'; diff --git a/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx b/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx index 67e906b792..15814cd3a7 100644 --- a/packages/web-react/src/components/Toast/__tests__/Toast.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/Toast.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 Toast from '../Toast'; describe('Toast', () => { 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 b4e18470ca..ede3a7026c 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBar.test.tsx @@ -1,10 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -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 ToastBar from '../ToastBar'; jest.mock('../../../hooks', () => useIconMock); diff --git a/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx b/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx index e199e8a2aa..083f86c835 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBarLink.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import ToastBarLink from '../ToastBarLink'; describe('ToastBarLink', () => { diff --git a/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx b/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx index 4a12704489..4e38e4c39a 100644 --- a/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx +++ b/packages/web-react/src/components/Toast/__tests__/ToastBarMessage.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import ToastBarMessage from '../ToastBarMessage'; describe('ToastBarMessage', () => { diff --git a/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx index ec0d632707..d06fbae2c1 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/Tooltip.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import { Button } from '../../Button'; import { Tooltip, TooltipPopover, TooltipTrigger } from '..'; diff --git a/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx index 38dc4a6ef4..ba8a9fb945 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/TooltipPopover.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 { TooltipPopover } from '..'; describe('TooltipPopover', () => { diff --git a/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx index c858a9ff4f..290c30af8d 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/TooltipTrigger.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import { Button } from '../../Button'; import { TooltipTrigger } from '..'; diff --git a/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx b/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx index 8c2254fe3d..00b5ef1735 100644 --- a/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx +++ b/packages/web-react/src/components/Tooltip/__tests__/UncontrolledTooltip.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import UncontrolledTooltip from '../UncontrolledTooltip'; describe('UncontrolledTooltip', () => { diff --git a/packages/web-react/src/components/UNSTABLE_ActionLayout/__tests__/UNSTABLE_ActionLayout.test.tsx b/packages/web-react/src/components/UNSTABLE_ActionLayout/__tests__/UNSTABLE_ActionLayout.test.tsx index e55477ae2d..c24b1233fc 100644 --- a/packages/web-react/src/components/UNSTABLE_ActionLayout/__tests__/UNSTABLE_ActionLayout.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_ActionLayout/__tests__/UNSTABLE_ActionLayout.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 UNSTABLE_ActionLayout from '../UNSTABLE_ActionLayout'; describe('UNSTABLE_ActionLayout', () => { 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 4b7aca8933..eae0530fb0 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,11 +1,13 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { useIconMock } from '@local/tests'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { sizeExtendedPropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + useIconMock, + classNamePrefixProviderTest, + sizeExtendedPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import { Icon } from '../../Icon'; import UNSTABLE_Avatar from '../UNSTABLE_Avatar'; diff --git a/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyState.test.tsx b/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyState.test.tsx index b83382ddc3..a26ca32e89 100644 --- a/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyState.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyState.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 UNSTABLE_EmptyState from '../UNSTABLE_EmptyState'; describe('UNSTABLE_EmptyState', () => { diff --git a/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyStateSection.test.tsx b/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyStateSection.test.tsx index 3d50e7715d..fb5aa502a4 100644 --- a/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyStateSection.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_EmptyState/__tests__/UNSTABLE_EmptyStateSection.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 UNSTABLE_EmptyStateSection from '../UNSTABLE_EmptyStateSection'; describe('UNSTABLE_EmptyStateSection', () => { diff --git a/packages/web-react/src/components/UNSTABLE_Slider/__tests__/UNSTABLE_Slider.test.tsx b/packages/web-react/src/components/UNSTABLE_Slider/__tests__/UNSTABLE_Slider.test.tsx index 3a16f5d250..ad26f98eea 100644 --- a/packages/web-react/src/components/UNSTABLE_Slider/__tests__/UNSTABLE_Slider.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_Slider/__tests__/UNSTABLE_Slider.test.tsx @@ -1,8 +1,7 @@ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import React from 'react'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { restPropsTest, stylePropsTest } from '@local/tests'; import UNSTABLE_Slider from '../UNSTABLE_Slider'; describe('UNSTABLE_Slider', () => { diff --git a/packages/web-react/src/components/UNSTABLE_Toggle/__tests__/UNSTABLE_Toggle.test.tsx b/packages/web-react/src/components/UNSTABLE_Toggle/__tests__/UNSTABLE_Toggle.test.tsx index 6d1e057e66..42b22eba4b 100644 --- a/packages/web-react/src/components/UNSTABLE_Toggle/__tests__/UNSTABLE_Toggle.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_Toggle/__tests__/UNSTABLE_Toggle.test.tsx @@ -1,11 +1,13 @@ import '@testing-library/jest-dom'; import { fireEvent, render, screen } from '@testing-library/react'; import React from 'react'; -import { classNamePrefixProviderTest } from '../../../../tests/providerTests/classNamePrefixProviderTest'; -import { validationStatePropsTest } from '../../../../tests/providerTests/dictionaryPropsTest'; -import { requiredPropsTest } from '../../../../tests/providerTests/requiredPropsTest'; -import { restPropsTest } from '../../../../tests/providerTests/restPropsTest'; -import { stylePropsTest } from '../../../../tests/providerTests/stylePropsTest'; +import { + classNamePrefixProviderTest, + validationStatePropsTest, + requiredPropsTest, + restPropsTest, + stylePropsTest, +} from '@local/tests'; import UNSTABLE_Toggle from '../UNSTABLE_Toggle'; describe('UNSTABLE_Toggle', () => { diff --git a/packages/web-react/src/components/UNSTABLE_Truncate/__tests__/UNSTABLE_Truncate.test.tsx b/packages/web-react/src/components/UNSTABLE_Truncate/__tests__/UNSTABLE_Truncate.test.tsx index e05eb208e5..89d2560df1 100644 --- a/packages/web-react/src/components/UNSTABLE_Truncate/__tests__/UNSTABLE_Truncate.test.tsx +++ b/packages/web-react/src/components/UNSTABLE_Truncate/__tests__/UNSTABLE_Truncate.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 UNSTABLE_Truncate from '../UNSTABLE_Truncate'; describe('UNSTABLE_Truncate', () => { diff --git a/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx b/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx index d9f5390955..daef23c4bd 100644 --- a/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx +++ b/packages/web-react/src/components/VisuallyHidden/__tests__/VisuallyHidden.test.tsx @@ -1,9 +1,7 @@ import { render } from '@testing-library/react'; import React from 'react'; import '@testing-library/jest-dom'; -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 VisuallyHidden from '../VisuallyHidden'; describe('Visually Hidden', () => {