From ed3ed2b9409219bcb08897cf5631f9d15cf113aa Mon Sep 17 00:00:00 2001 From: Dmitriy-Litvinenko Date: Thu, 28 Sep 2023 17:17:56 +0300 Subject: [PATCH] UICIRC-987: Remove outdated imports --- CHANGELOG.md | 1 + src/settings/CheckoutSettings/CheckoutSettings.test.js | 3 --- src/settings/CheckoutSettings/CheckoutSettingsForm.test.js | 3 --- src/settings/FinePolicy/FinePolicyDetail.test.js | 3 --- src/settings/FinePolicy/FinePolicyForm.test.js | 3 --- src/settings/FinePolicy/FinePolicySettings.test.js | 3 --- .../components/EditSections/FinesSection/FinesSection.test.js | 3 --- .../OverdueAboutSection/OverdueAboutSection.test.js | 3 --- .../EditSections/RangeSection/OverdueFinesSection.test.js | 3 --- .../RangeSection/OverdueFinesSectionColumn.test.js | 3 --- .../ReminderFeesSection/ReminderFeesFields.test.js | 3 --- .../ReminderFeesSection/ReminderFeesSection.test.js | 2 -- .../components/ViewSections/FinesSection/FinesSection.test.js | 3 --- .../OverdueAboutSection/OverdueAboutSection.test.js | 3 --- .../ReminderFeesSection/ReminderFeesSection.test.js | 2 -- .../FixedDueDateSchedule/FixedDueDateScheduleDetail.test.js | 3 --- .../FixedDueDateSchedule/FixedDueDateScheduleForm.test.js | 3 --- .../FixedDueDateSchedule/FixedDueDateScheduleManager.test.js | 3 --- .../DetailsSections/ScedulesList/SchedulesList.test.js | 3 --- .../EditSections/components/ScheduleCard/ScheduleCard.test.js | 3 --- .../components/SchedulesList/SchedulesList.test.js | 3 --- src/settings/LoanHistory/ExceptionCard.test.js | 3 --- src/settings/LoanHistory/ExceptionsList.test.js | 3 --- src/settings/LoanHistory/LoanHistoryForm.test.js | 3 --- src/settings/LoanHistory/LoanHistorySettings.test.js | 3 --- src/settings/LoanPolicy/LoanPolicyDetail.test.js | 3 --- src/settings/LoanPolicy/LoanPolicyForm.test.js | 3 --- src/settings/LoanPolicy/LoanPolicySettings.test.js | 3 --- .../components/EditSections/AboutSection/AboutSection.test.js | 3 --- .../components/EditSections/LoansSection/LoansSection.test.js | 3 --- .../EditSections/RenewalsSection/RenewalsSection.test.js | 3 --- .../RequestManagementSection/RequestManagementSection.test.js | 3 --- .../components/ViewSections/AboutSection/AboutSection.test.js | 3 --- .../components/ViewSections/LoansSection/LoansSection.test.js | 3 --- .../ViewSections/RenewalsSection/RenewalsSection.test.js | 3 --- .../RequestManagementSection/RequestManagementSection.test.js | 3 --- src/settings/LostItemFeePolicy/LostItemFeePolicyDetail.test.js | 3 --- src/settings/LostItemFeePolicy/LostItemFeePolicyForm.test.js | 3 --- .../LostItemFeePolicy/LostItemFeePolicySettings.test.js | 3 --- .../LostItemFeeAboutSection/LostItemFeeAboutSection.test.js | 3 --- .../EditSections/LostItemFeeSection/LostItemFeeSection.test.js | 3 --- .../components/EditSections/RadioGroup/RadioGroup.test.js | 3 --- .../LostItemFeeAboutSection/LostItemFeeAboutSection.test.js | 3 --- .../ViewSections/LostItemFeeSection/LostItemFeeSection.test.js | 3 --- src/settings/NoticePolicy/NoticePolicyDetail.test.js | 3 --- src/settings/NoticePolicy/NoticePolicyForm.test.js | 3 --- src/settings/NoticePolicy/NoticePolicySettings.test.js | 3 --- .../FeeFineNoticesSection/FeeFineNoticesSection.test.js | 3 --- .../DetailSections/GeneralSection/GeneralSection.test.js | 3 --- .../LoanNoticesSection/LoanNoticesSection.test.js | 3 --- .../RequestNoticesSection/RequestNoticesSection.test.js | 3 --- .../DetailSections/components/NoticeCard/NoticeCard.test.js | 3 --- .../FeeFineNoticesSection/FeeFineNoticesSection.test.js | 3 --- .../EditSections/GeneralSection/GeneralSection.test.js | 3 --- .../EditSections/LoanNoticesSection/LoanNoticesSection.test.js | 3 --- .../RequestNoticesSection/RequestNoticesSection.test.js | 3 --- .../EditSections/components/NoticeCard/NoticeCard.test.js | 3 --- .../EditSections/components/NoticesList/NoticesList.test.js | 3 --- src/settings/PatronNotices/PatronNoticeDetail.test.js | 3 --- src/settings/PatronNotices/PatronNoticeForm.test.js | 3 --- src/settings/PatronNotices/TokensList/TokensList.test.js | 3 --- .../PatronNoticeAboutSection/PatronNoticeAboutSection.test.js | 3 --- .../PatronNoticeAboutSection/PatronNoticeAboutSection.test.js | 3 --- .../PatronNoticeEmailSection/PatronNoticeEmailSection.test.js | 3 --- src/settings/RequestPolicy/RequestPolicyDetail.test.js | 3 --- src/settings/RequestPolicy/RequestPolicyForm.test.js | 3 --- src/settings/RequestPolicy/RequestPolicySettings.test.js | 3 --- .../EditSections/GeneralSection/GeneralSection.test.js | 3 --- src/settings/StaffSlips/StaffSlipDetail.test.js | 3 --- src/settings/StaffSlips/StaffSlipForm.test.js | 3 --- src/settings/StaffSlips/StaffSlipManager.test.js | 3 --- src/settings/StaffSlips/TokensList/TokensList.test.js | 3 --- .../StaffSlipAboutSection/StaffSlipAboutSection.test.js | 3 --- .../StaffSlipAboutSection/StaffSlipAboutSection.test.js | 3 --- .../StaffSlipTemplateContentSection.test.js | 3 --- .../TitleLevelRequests/NoticeTemplates/NoticeTemplates.test.js | 3 --- src/settings/TitleLevelRequests/TitleLevelRequests.test.js | 3 --- src/settings/TitleLevelRequests/TitleLevelRequestsForm.test.js | 3 --- .../Validation/checkout-settings/patron-identifiers.test.js | 2 -- .../Validation/fixed-due-date-schedule/schedules.test.js | 2 -- .../AnonymizingTypeSelect/AnonymizingTypeSelect.test.js | 3 --- .../AnonymizingTypeSelectContainer.test.js | 3 --- src/settings/components/CancelButton/CancelButton.test.js | 2 -- src/settings/components/FooterPane/FooterPane.test.js | 3 --- src/settings/components/Metadata/Metadata.test.js | 2 -- src/settings/components/Period/Period.test.js | 3 --- src/settings/lib/RuleEditor/RulesEditor.test.js | 2 -- src/settings/lib/RuleEditor/RulesField.test.js | 3 --- src/settings/lib/RuleEditor/RulesForm.test.js | 3 --- src/settings/lib/RuleEditor/initRulesCMM.test.js | 2 -- src/settings/wrappers/withPreventDelete.test.js | 3 --- 91 files changed, 1 insertion(+), 262 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48cc216a..82e2d010 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ * Restore previously deleted Jest/RTL tests that were failing. Refs UICIRC-971. * Add "hour" to the time frequency for reminder fees. Fixes UICIRC-983. * Freeze the first five selection menus for reminder fees. Refs UICIRC-982. +* Remove outdated imports. Refs UICIRC-987. ## [8.0.1](https://github.com/folio-org/ui-circulation/tree/v8.0.1) (2023-03-07) [Full Changelog](https://github.com/folio-org/ui-circulation/compare/v8.0.0...v8.0.1) diff --git a/src/settings/CheckoutSettings/CheckoutSettings.test.js b/src/settings/CheckoutSettings/CheckoutSettings.test.js index a9de7644..3d7c0c9b 100644 --- a/src/settings/CheckoutSettings/CheckoutSettings.test.js +++ b/src/settings/CheckoutSettings/CheckoutSettings.test.js @@ -1,9 +1,6 @@ -import React from 'react'; import { render } from '@folio/jest-config-stripes/testing-library/react'; import { omit } from 'lodash'; -import '../../../test/jest/__mock__'; - import { ConfigManager } from '@folio/stripes/smart-components'; import CheckoutSettings, { diff --git a/src/settings/CheckoutSettings/CheckoutSettingsForm.test.js b/src/settings/CheckoutSettings/CheckoutSettingsForm.test.js index 4a969d9f..d08377e3 100644 --- a/src/settings/CheckoutSettings/CheckoutSettingsForm.test.js +++ b/src/settings/CheckoutSettings/CheckoutSettingsForm.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import CheckoutSettingsForm, { getCustomFieldPatronIdentifiers, } from './CheckoutSettingsForm'; diff --git a/src/settings/FinePolicy/FinePolicyDetail.test.js b/src/settings/FinePolicy/FinePolicyDetail.test.js index c2cd9c75..d1204f39 100644 --- a/src/settings/FinePolicy/FinePolicyDetail.test.js +++ b/src/settings/FinePolicy/FinePolicyDetail.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/FinePolicy/FinePolicyForm.test.js b/src/settings/FinePolicy/FinePolicyForm.test.js index 1e76c499..377f8b12 100644 --- a/src/settings/FinePolicy/FinePolicyForm.test.js +++ b/src/settings/FinePolicy/FinePolicyForm.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/FinePolicy/FinePolicySettings.test.js b/src/settings/FinePolicy/FinePolicySettings.test.js index 57c77964..cc3ddf1b 100644 --- a/src/settings/FinePolicy/FinePolicySettings.test.js +++ b/src/settings/FinePolicy/FinePolicySettings.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import withPreventDelete from '../wrappers/withPreventDelete'; diff --git a/src/settings/FinePolicy/components/EditSections/FinesSection/FinesSection.test.js b/src/settings/FinePolicy/components/EditSections/FinesSection/FinesSection.test.js index a967ca35..c36f657c 100644 --- a/src/settings/FinePolicy/components/EditSections/FinesSection/FinesSection.test.js +++ b/src/settings/FinePolicy/components/EditSections/FinesSection/FinesSection.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Accordion, } from '@folio/stripes/components'; diff --git a/src/settings/FinePolicy/components/EditSections/OverdueAboutSection/OverdueAboutSection.test.js b/src/settings/FinePolicy/components/EditSections/OverdueAboutSection/OverdueAboutSection.test.js index 61323186..13d9bd6e 100644 --- a/src/settings/FinePolicy/components/EditSections/OverdueAboutSection/OverdueAboutSection.test.js +++ b/src/settings/FinePolicy/components/EditSections/OverdueAboutSection/OverdueAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import OverdueAboutSection from './OverdueAboutSection'; const labelIds = { diff --git a/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSection.test.js b/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSection.test.js index 12b4eccd..f1b6c157 100644 --- a/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSection.test.js +++ b/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSectionColumn.test.js b/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSectionColumn.test.js index 9934502a..94dfdd6b 100644 --- a/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSectionColumn.test.js +++ b/src/settings/FinePolicy/components/EditSections/RangeSection/OverdueFinesSectionColumn.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesFields.test.js b/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesFields.test.js index 5ad4936a..d8289ce3 100644 --- a/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesFields.test.js +++ b/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesFields.test.js @@ -1,8 +1,5 @@ -import React from 'react'; import { render } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { FieldArray } from 'react-final-form-arrays'; import ReminderFeesFields from './ReminderFeesFields'; diff --git a/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesSection.test.js b/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesSection.test.js index 11e2aa89..3dde99aa 100644 --- a/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesSection.test.js +++ b/src/settings/FinePolicy/components/EditSections/ReminderFeesSection/ReminderFeesSection.test.js @@ -1,7 +1,5 @@ import { render } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import ReminderFeesSection from './ReminderFeesSection'; describe('ReminderFeesSection', () => { diff --git a/src/settings/FinePolicy/components/ViewSections/FinesSection/FinesSection.test.js b/src/settings/FinePolicy/components/ViewSections/FinesSection/FinesSection.test.js index c6854149..d9a6c7da 100644 --- a/src/settings/FinePolicy/components/ViewSections/FinesSection/FinesSection.test.js +++ b/src/settings/FinePolicy/components/ViewSections/FinesSection/FinesSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { FormattedMessage } from 'react-intl'; import FinesSection, { diff --git a/src/settings/FinePolicy/components/ViewSections/OverdueAboutSection/OverdueAboutSection.test.js b/src/settings/FinePolicy/components/ViewSections/OverdueAboutSection/OverdueAboutSection.test.js index 716fa788..57620d6b 100644 --- a/src/settings/FinePolicy/components/ViewSections/OverdueAboutSection/OverdueAboutSection.test.js +++ b/src/settings/FinePolicy/components/ViewSections/OverdueAboutSection/OverdueAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import OverdueAboutSection from './OverdueAboutSection'; const testIds = { diff --git a/src/settings/FinePolicy/components/ViewSections/ReminderFeesSection/ReminderFeesSection.test.js b/src/settings/FinePolicy/components/ViewSections/ReminderFeesSection/ReminderFeesSection.test.js index 8eb402b7..58e9adc7 100644 --- a/src/settings/FinePolicy/components/ViewSections/ReminderFeesSection/ReminderFeesSection.test.js +++ b/src/settings/FinePolicy/components/ViewSections/ReminderFeesSection/ReminderFeesSection.test.js @@ -1,7 +1,5 @@ import { render } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import ReminderFeesSection, { generateFormatter } from './ReminderFeesSection'; const getCheckboxValue = jest.fn(() => null); diff --git a/src/settings/FixedDueDateSchedule/FixedDueDateScheduleDetail.test.js b/src/settings/FixedDueDateSchedule/FixedDueDateScheduleDetail.test.js index 22cdb879..97199dbe 100644 --- a/src/settings/FixedDueDateSchedule/FixedDueDateScheduleDetail.test.js +++ b/src/settings/FixedDueDateSchedule/FixedDueDateScheduleDetail.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { ViewMetaData } from '@folio/stripes/smart-components'; import { AccordionSet, diff --git a/src/settings/FixedDueDateSchedule/FixedDueDateScheduleForm.test.js b/src/settings/FixedDueDateSchedule/FixedDueDateScheduleForm.test.js index e88ddd66..58646ea6 100644 --- a/src/settings/FixedDueDateSchedule/FixedDueDateScheduleForm.test.js +++ b/src/settings/FixedDueDateSchedule/FixedDueDateScheduleForm.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { waitFor, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/FixedDueDateSchedule/FixedDueDateScheduleManager.test.js b/src/settings/FixedDueDateSchedule/FixedDueDateScheduleManager.test.js index 12ec71a6..918fceb6 100644 --- a/src/settings/FixedDueDateSchedule/FixedDueDateScheduleManager.test.js +++ b/src/settings/FixedDueDateSchedule/FixedDueDateScheduleManager.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import FixedDueDateScheduleDetail from './FixedDueDateScheduleDetail'; diff --git a/src/settings/FixedDueDateSchedule/components/DetailsSections/ScedulesList/SchedulesList.test.js b/src/settings/FixedDueDateSchedule/components/DetailsSections/ScedulesList/SchedulesList.test.js index 41c6e763..4e8bb075 100644 --- a/src/settings/FixedDueDateSchedule/components/DetailsSections/ScedulesList/SchedulesList.test.js +++ b/src/settings/FixedDueDateSchedule/components/DetailsSections/ScedulesList/SchedulesList.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { IntlProvider } from 'react-intl'; import { render, @@ -6,8 +5,6 @@ import { within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import SchedulesList from './SchedulesList'; const mockedSchedules = [ diff --git a/src/settings/FixedDueDateSchedule/components/EditSections/components/ScheduleCard/ScheduleCard.test.js b/src/settings/FixedDueDateSchedule/components/EditSections/components/ScheduleCard/ScheduleCard.test.js index 1eece117..1f7a0d68 100644 --- a/src/settings/FixedDueDateSchedule/components/EditSections/components/ScheduleCard/ScheduleCard.test.js +++ b/src/settings/FixedDueDateSchedule/components/EditSections/components/ScheduleCard/ScheduleCard.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -7,8 +6,6 @@ import { } from '@folio/jest-config-stripes/testing-library/react'; import moment from 'moment-timezone'; -import '../../../../../../../test/jest/__mock__'; - import { FormattedMessage } from 'react-intl'; import { Datepicker, diff --git a/src/settings/FixedDueDateSchedule/components/EditSections/components/SchedulesList/SchedulesList.test.js b/src/settings/FixedDueDateSchedule/components/EditSections/components/SchedulesList/SchedulesList.test.js index 4f4cce81..92c6d018 100644 --- a/src/settings/FixedDueDateSchedule/components/EditSections/components/SchedulesList/SchedulesList.test.js +++ b/src/settings/FixedDueDateSchedule/components/EditSections/components/SchedulesList/SchedulesList.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -10,8 +9,6 @@ import { uniqueId, } from 'lodash'; -import '../../../../../../../test/jest/__mock__'; - import SchedulesList from './SchedulesList'; import ScheduleCard from '../ScheduleCard'; diff --git a/src/settings/LoanHistory/ExceptionCard.test.js b/src/settings/LoanHistory/ExceptionCard.test.js index 9b5557bd..0803f85b 100644 --- a/src/settings/LoanHistory/ExceptionCard.test.js +++ b/src/settings/LoanHistory/ExceptionCard.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/LoanHistory/ExceptionsList.test.js b/src/settings/LoanHistory/ExceptionsList.test.js index ed8320c8..a2550208 100644 --- a/src/settings/LoanHistory/ExceptionsList.test.js +++ b/src/settings/LoanHistory/ExceptionsList.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { } from '@folio/jest-config-stripes/testing-library/react'; import userEvent from '@folio/jest-config-stripes/testing-library/user-event'; -import '../../../test/jest/__mock__'; - import ExceptionCard from './ExceptionCard'; import ExceptionsList from './ExceptionsList'; diff --git a/src/settings/LoanHistory/LoanHistoryForm.test.js b/src/settings/LoanHistory/LoanHistoryForm.test.js index 00048e53..ef81d30a 100644 --- a/src/settings/LoanHistory/LoanHistoryForm.test.js +++ b/src/settings/LoanHistory/LoanHistoryForm.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { FieldArray } from 'react-final-form-arrays'; import { diff --git a/src/settings/LoanHistory/LoanHistorySettings.test.js b/src/settings/LoanHistory/LoanHistorySettings.test.js index 0d8a5408..20c8e352 100644 --- a/src/settings/LoanHistory/LoanHistorySettings.test.js +++ b/src/settings/LoanHistory/LoanHistorySettings.test.js @@ -1,8 +1,5 @@ -import React from 'react'; import { render } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { ConfigManager } from '@folio/stripes/smart-components'; import LoanHistorySettings, { diff --git a/src/settings/LoanPolicy/LoanPolicyDetail.test.js b/src/settings/LoanPolicy/LoanPolicyDetail.test.js index d892d4a1..0478dd18 100644 --- a/src/settings/LoanPolicy/LoanPolicyDetail.test.js +++ b/src/settings/LoanPolicy/LoanPolicyDetail.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/LoanPolicy/LoanPolicyForm.test.js b/src/settings/LoanPolicy/LoanPolicyForm.test.js index eae7ed78..d2e64730 100644 --- a/src/settings/LoanPolicy/LoanPolicyForm.test.js +++ b/src/settings/LoanPolicy/LoanPolicyForm.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, ExpandAllButton, diff --git a/src/settings/LoanPolicy/LoanPolicySettings.test.js b/src/settings/LoanPolicy/LoanPolicySettings.test.js index 867db929..81b089ea 100644 --- a/src/settings/LoanPolicy/LoanPolicySettings.test.js +++ b/src/settings/LoanPolicy/LoanPolicySettings.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import LoanPolicyDetail from './LoanPolicyDetail'; diff --git a/src/settings/LoanPolicy/components/EditSections/AboutSection/AboutSection.test.js b/src/settings/LoanPolicy/components/EditSections/AboutSection/AboutSection.test.js index 657a8a37..2276e1dd 100644 --- a/src/settings/LoanPolicy/components/EditSections/AboutSection/AboutSection.test.js +++ b/src/settings/LoanPolicy/components/EditSections/AboutSection/AboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { TextArea, TextField, diff --git a/src/settings/LoanPolicy/components/EditSections/LoansSection/LoansSection.test.js b/src/settings/LoanPolicy/components/EditSections/LoansSection/LoansSection.test.js index 34d55717..fc28017c 100644 --- a/src/settings/LoanPolicy/components/EditSections/LoansSection/LoansSection.test.js +++ b/src/settings/LoanPolicy/components/EditSections/LoansSection/LoansSection.test.js @@ -1,8 +1,5 @@ -import React from 'react'; import { render } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/LoanPolicy/components/EditSections/RenewalsSection/RenewalsSection.test.js b/src/settings/LoanPolicy/components/EditSections/RenewalsSection/RenewalsSection.test.js index aa02c338..02eaaa86 100644 --- a/src/settings/LoanPolicy/components/EditSections/RenewalsSection/RenewalsSection.test.js +++ b/src/settings/LoanPolicy/components/EditSections/RenewalsSection/RenewalsSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/LoanPolicy/components/EditSections/RequestManagementSection/RequestManagementSection.test.js b/src/settings/LoanPolicy/components/EditSections/RequestManagementSection/RequestManagementSection.test.js index e6f437d7..7935daa1 100644 --- a/src/settings/LoanPolicy/components/EditSections/RequestManagementSection/RequestManagementSection.test.js +++ b/src/settings/LoanPolicy/components/EditSections/RequestManagementSection/RequestManagementSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { Checkbox, diff --git a/src/settings/LoanPolicy/components/ViewSections/AboutSection/AboutSection.test.js b/src/settings/LoanPolicy/components/ViewSections/AboutSection/AboutSection.test.js index bfec09d9..bb440781 100644 --- a/src/settings/LoanPolicy/components/ViewSections/AboutSection/AboutSection.test.js +++ b/src/settings/LoanPolicy/components/ViewSections/AboutSection/AboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import AboutSection from './AboutSection'; const testIds = { diff --git a/src/settings/LoanPolicy/components/ViewSections/LoansSection/LoansSection.test.js b/src/settings/LoanPolicy/components/ViewSections/LoansSection/LoansSection.test.js index d8bfa6d0..3b31560f 100644 --- a/src/settings/LoanPolicy/components/ViewSections/LoansSection/LoansSection.test.js +++ b/src/settings/LoanPolicy/components/ViewSections/LoansSection/LoansSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import LoansSection from './LoansSection'; import { loanProfileTypes, diff --git a/src/settings/LoanPolicy/components/ViewSections/RenewalsSection/RenewalsSection.test.js b/src/settings/LoanPolicy/components/ViewSections/RenewalsSection/RenewalsSection.test.js index 69162c8f..2157081a 100644 --- a/src/settings/LoanPolicy/components/ViewSections/RenewalsSection/RenewalsSection.test.js +++ b/src/settings/LoanPolicy/components/ViewSections/RenewalsSection/RenewalsSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { KeyValue, } from '@folio/stripes/components'; diff --git a/src/settings/LoanPolicy/components/ViewSections/RequestManagementSection/RequestManagementSection.test.js b/src/settings/LoanPolicy/components/ViewSections/RequestManagementSection/RequestManagementSection.test.js index 634b80a2..bf7f61f3 100644 --- a/src/settings/LoanPolicy/components/ViewSections/RequestManagementSection/RequestManagementSection.test.js +++ b/src/settings/LoanPolicy/components/ViewSections/RequestManagementSection/RequestManagementSection.test.js @@ -1,7 +1,6 @@ /* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ /* eslint-disable jsx-a11y/no-static-element-interactions */ -import React from 'react'; import { render, screen, @@ -9,8 +8,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Accordion } from '@folio/stripes/components'; import RequestManagementSection from './RequestManagementSection'; diff --git a/src/settings/LostItemFeePolicy/LostItemFeePolicyDetail.test.js b/src/settings/LostItemFeePolicy/LostItemFeePolicyDetail.test.js index 74b6088e..cc1a1a3d 100644 --- a/src/settings/LostItemFeePolicy/LostItemFeePolicyDetail.test.js +++ b/src/settings/LostItemFeePolicy/LostItemFeePolicyDetail.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/LostItemFeePolicy/LostItemFeePolicyForm.test.js b/src/settings/LostItemFeePolicy/LostItemFeePolicyForm.test.js index 4f540cc5..6c7d6876 100644 --- a/src/settings/LostItemFeePolicy/LostItemFeePolicyForm.test.js +++ b/src/settings/LostItemFeePolicy/LostItemFeePolicyForm.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/LostItemFeePolicy/LostItemFeePolicySettings.test.js b/src/settings/LostItemFeePolicy/LostItemFeePolicySettings.test.js index 4637d329..dca00347 100644 --- a/src/settings/LostItemFeePolicy/LostItemFeePolicySettings.test.js +++ b/src/settings/LostItemFeePolicy/LostItemFeePolicySettings.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import LostItemFeePolicySettings, { diff --git a/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js b/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js index fa77411f..6258cb26 100644 --- a/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js +++ b/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { TextArea, TextField, diff --git a/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeSection/LostItemFeeSection.test.js b/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeSection/LostItemFeeSection.test.js index 7791f967..4e684cc3 100644 --- a/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeSection/LostItemFeeSection.test.js +++ b/src/settings/LostItemFeePolicy/components/EditSections/LostItemFeeSection/LostItemFeeSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { Select, diff --git a/src/settings/LostItemFeePolicy/components/EditSections/RadioGroup/RadioGroup.test.js b/src/settings/LostItemFeePolicy/components/EditSections/RadioGroup/RadioGroup.test.js index 91ecff96..6a476fef 100644 --- a/src/settings/LostItemFeePolicy/components/EditSections/RadioGroup/RadioGroup.test.js +++ b/src/settings/LostItemFeePolicy/components/EditSections/RadioGroup/RadioGroup.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js b/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js index 925da581..4f304dbb 100644 --- a/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js +++ b/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeAboutSection/LostItemFeeAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import LostItemFeeAboutSection from './LostItemFeeAboutSection'; const testIds = { diff --git a/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeSection/LostItemFeeSection.test.js b/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeSection/LostItemFeeSection.test.js index e698586a..b26e00ad 100644 --- a/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeSection/LostItemFeeSection.test.js +++ b/src/settings/LostItemFeePolicy/components/ViewSections/LostItemFeeSection/LostItemFeeSection.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { noop } from 'lodash'; import { render, @@ -6,8 +5,6 @@ import { within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import LostItemFeeSection from './LostItemFeeSection'; const testSectionKeyValues = (testName, testId, expectedValue) => { diff --git a/src/settings/NoticePolicy/NoticePolicyDetail.test.js b/src/settings/NoticePolicy/NoticePolicyDetail.test.js index 57748d7b..2059e3c4 100644 --- a/src/settings/NoticePolicy/NoticePolicyDetail.test.js +++ b/src/settings/NoticePolicy/NoticePolicyDetail.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { ExpandAllButton, AccordionSet, diff --git a/src/settings/NoticePolicy/NoticePolicyForm.test.js b/src/settings/NoticePolicy/NoticePolicyForm.test.js index f0b8a092..af6f32ab 100644 --- a/src/settings/NoticePolicy/NoticePolicyForm.test.js +++ b/src/settings/NoticePolicy/NoticePolicyForm.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { ExpandAllButton, AccordionSet, diff --git a/src/settings/NoticePolicy/NoticePolicySettings.test.js b/src/settings/NoticePolicy/NoticePolicySettings.test.js index 75963ff8..45209722 100644 --- a/src/settings/NoticePolicy/NoticePolicySettings.test.js +++ b/src/settings/NoticePolicy/NoticePolicySettings.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import NoticePolicySettings, { diff --git a/src/settings/NoticePolicy/components/DetailSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js b/src/settings/NoticePolicy/components/DetailSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js index db88dd16..d8f6c9d9 100644 --- a/src/settings/NoticePolicy/components/DetailSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js +++ b/src/settings/NoticePolicy/components/DetailSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import FeeFineNoticesSection from './FeeFineNoticesSection'; import NoticeCard from '../components'; import { diff --git a/src/settings/NoticePolicy/components/DetailSections/GeneralSection/GeneralSection.test.js b/src/settings/NoticePolicy/components/DetailSections/GeneralSection/GeneralSection.test.js index a58ba2ef..86368b4a 100644 --- a/src/settings/NoticePolicy/components/DetailSections/GeneralSection/GeneralSection.test.js +++ b/src/settings/NoticePolicy/components/DetailSections/GeneralSection/GeneralSection.test.js @@ -1,8 +1,5 @@ -import React from 'react'; import { render, screen, within } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Metadata } from '../../../../components'; import GeneralSection from './GeneralSection'; diff --git a/src/settings/NoticePolicy/components/DetailSections/LoanNoticesSection/LoanNoticesSection.test.js b/src/settings/NoticePolicy/components/DetailSections/LoanNoticesSection/LoanNoticesSection.test.js index fd1b389e..2b2b30d9 100644 --- a/src/settings/NoticePolicy/components/DetailSections/LoanNoticesSection/LoanNoticesSection.test.js +++ b/src/settings/NoticePolicy/components/DetailSections/LoanNoticesSection/LoanNoticesSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import LoanNoticesSection from './LoanNoticesSection'; import NoticeCard from '../components'; import { diff --git a/src/settings/NoticePolicy/components/DetailSections/RequestNoticesSection/RequestNoticesSection.test.js b/src/settings/NoticePolicy/components/DetailSections/RequestNoticesSection/RequestNoticesSection.test.js index 0cdd466b..e3199cce 100644 --- a/src/settings/NoticePolicy/components/DetailSections/RequestNoticesSection/RequestNoticesSection.test.js +++ b/src/settings/NoticePolicy/components/DetailSections/RequestNoticesSection/RequestNoticesSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import RequestNoticesSection from './RequestNoticesSection'; import NoticeCard from '../components'; import { diff --git a/src/settings/NoticePolicy/components/DetailSections/components/NoticeCard/NoticeCard.test.js b/src/settings/NoticePolicy/components/DetailSections/components/NoticeCard/NoticeCard.test.js index e8ff9669..2993f15d 100644 --- a/src/settings/NoticePolicy/components/DetailSections/components/NoticeCard/NoticeCard.test.js +++ b/src/settings/NoticePolicy/components/DetailSections/components/NoticeCard/NoticeCard.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { screen, render, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../../test/jest/__mock__'; - import NoticeCard from './NoticeCard'; import { loanNoticesTriggeringEvents, diff --git a/src/settings/NoticePolicy/components/EditSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js b/src/settings/NoticePolicy/components/EditSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js index 16ad0f8c..fcc96131 100644 --- a/src/settings/NoticePolicy/components/EditSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js +++ b/src/settings/NoticePolicy/components/EditSections/FeeFineNoticesSection/FeeFineNoticesSection.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { FieldArray } from 'react-final-form-arrays'; import { Accordion } from '@folio/stripes/components'; diff --git a/src/settings/NoticePolicy/components/EditSections/GeneralSection/GeneralSection.test.js b/src/settings/NoticePolicy/components/EditSections/GeneralSection/GeneralSection.test.js index fe940f07..757cebfd 100644 --- a/src/settings/NoticePolicy/components/EditSections/GeneralSection/GeneralSection.test.js +++ b/src/settings/NoticePolicy/components/EditSections/GeneralSection/GeneralSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/NoticePolicy/components/EditSections/LoanNoticesSection/LoanNoticesSection.test.js b/src/settings/NoticePolicy/components/EditSections/LoanNoticesSection/LoanNoticesSection.test.js index 716ef312..709a8bb3 100644 --- a/src/settings/NoticePolicy/components/EditSections/LoanNoticesSection/LoanNoticesSection.test.js +++ b/src/settings/NoticePolicy/components/EditSections/LoanNoticesSection/LoanNoticesSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { FieldArray } from 'react-final-form-arrays'; import NoticesList from '../components'; import LoanNoticesSection, { diff --git a/src/settings/NoticePolicy/components/EditSections/RequestNoticesSection/RequestNoticesSection.test.js b/src/settings/NoticePolicy/components/EditSections/RequestNoticesSection/RequestNoticesSection.test.js index c90ce9ff..871ef59a 100644 --- a/src/settings/NoticePolicy/components/EditSections/RequestNoticesSection/RequestNoticesSection.test.js +++ b/src/settings/NoticePolicy/components/EditSections/RequestNoticesSection/RequestNoticesSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { FieldArray } from 'react-final-form-arrays'; import NoticesList from '../components'; diff --git a/src/settings/NoticePolicy/components/EditSections/components/NoticeCard/NoticeCard.test.js b/src/settings/NoticePolicy/components/EditSections/components/NoticeCard/NoticeCard.test.js index 7634b0f4..0e7e7e6d 100644 --- a/src/settings/NoticePolicy/components/EditSections/components/NoticeCard/NoticeCard.test.js +++ b/src/settings/NoticePolicy/components/EditSections/components/NoticeCard/NoticeCard.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/NoticePolicy/components/EditSections/components/NoticesList/NoticesList.test.js b/src/settings/NoticePolicy/components/EditSections/components/NoticesList/NoticesList.test.js index ee9a8757..45ff1097 100644 --- a/src/settings/NoticePolicy/components/EditSections/components/NoticesList/NoticesList.test.js +++ b/src/settings/NoticePolicy/components/EditSections/components/NoticesList/NoticesList.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../../test/jest/__mock__'; - import NoticesList from './NoticesList'; import NoticeCard from '../NoticeCard'; diff --git a/src/settings/PatronNotices/PatronNoticeDetail.test.js b/src/settings/PatronNotices/PatronNoticeDetail.test.js index 040b6edb..afafc003 100644 --- a/src/settings/PatronNotices/PatronNoticeDetail.test.js +++ b/src/settings/PatronNotices/PatronNoticeDetail.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/PatronNotices/PatronNoticeForm.test.js b/src/settings/PatronNotices/PatronNoticeForm.test.js index 35cc620e..98bdc32a 100644 --- a/src/settings/PatronNotices/PatronNoticeForm.test.js +++ b/src/settings/PatronNotices/PatronNoticeForm.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { Pane, diff --git a/src/settings/PatronNotices/TokensList/TokensList.test.js b/src/settings/PatronNotices/TokensList/TokensList.test.js index 9c9ad819..14c19dd1 100644 --- a/src/settings/PatronNotices/TokensList/TokensList.test.js +++ b/src/settings/PatronNotices/TokensList/TokensList.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { screen, render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { TokensSection } from '@folio/stripes-template-editor'; import TokensList, { diff --git a/src/settings/PatronNotices/components/EditSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js b/src/settings/PatronNotices/components/EditSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js index 1fe3a49e..d3cd3f39 100644 --- a/src/settings/PatronNotices/components/EditSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js +++ b/src/settings/PatronNotices/components/EditSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { KeyValue, diff --git a/src/settings/PatronNotices/components/ViewSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js b/src/settings/PatronNotices/components/ViewSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js index 3026e5bb..d0523009 100644 --- a/src/settings/PatronNotices/components/ViewSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js +++ b/src/settings/PatronNotices/components/ViewSections/PatronNoticeAboutSection/PatronNoticeAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { KeyValue } from '@folio/stripes/components'; import PatronNoticeAboutSection from './PatronNoticeAboutSection'; diff --git a/src/settings/PatronNotices/components/ViewSections/PatronNoticeEmailSection/PatronNoticeEmailSection.test.js b/src/settings/PatronNotices/components/ViewSections/PatronNoticeEmailSection/PatronNoticeEmailSection.test.js index 1e62cf3f..8fcf0850 100644 --- a/src/settings/PatronNotices/components/ViewSections/PatronNoticeEmailSection/PatronNoticeEmailSection.test.js +++ b/src/settings/PatronNotices/components/ViewSections/PatronNoticeEmailSection/PatronNoticeEmailSection.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { fireEvent, render, @@ -6,8 +5,6 @@ import { within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { Row, Col, diff --git a/src/settings/RequestPolicy/RequestPolicyDetail.test.js b/src/settings/RequestPolicy/RequestPolicyDetail.test.js index e4d84336..6dd624a0 100644 --- a/src/settings/RequestPolicy/RequestPolicyDetail.test.js +++ b/src/settings/RequestPolicy/RequestPolicyDetail.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { AccordionSet, List, diff --git a/src/settings/RequestPolicy/RequestPolicyForm.test.js b/src/settings/RequestPolicy/RequestPolicyForm.test.js index 21bf7a5a..50667a9f 100644 --- a/src/settings/RequestPolicy/RequestPolicyForm.test.js +++ b/src/settings/RequestPolicy/RequestPolicyForm.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { AccordionSet, ExpandAllButton, diff --git a/src/settings/RequestPolicy/RequestPolicySettings.test.js b/src/settings/RequestPolicy/RequestPolicySettings.test.js index 6e38c472..2934b271 100644 --- a/src/settings/RequestPolicy/RequestPolicySettings.test.js +++ b/src/settings/RequestPolicy/RequestPolicySettings.test.js @@ -1,11 +1,8 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import RequestPolicySettings, { diff --git a/src/settings/RequestPolicy/components/EditSections/GeneralSection/GeneralSection.test.js b/src/settings/RequestPolicy/components/EditSections/GeneralSection/GeneralSection.test.js index c1a05846..104f9c98 100644 --- a/src/settings/RequestPolicy/components/EditSections/GeneralSection/GeneralSection.test.js +++ b/src/settings/RequestPolicy/components/EditSections/GeneralSection/GeneralSection.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { cleanup, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { FieldArray } from 'react-final-form-arrays'; import { Field } from 'react-final-form'; diff --git a/src/settings/StaffSlips/StaffSlipDetail.test.js b/src/settings/StaffSlips/StaffSlipDetail.test.js index 14fe88ae..8479d08a 100644 --- a/src/settings/StaffSlips/StaffSlipDetail.test.js +++ b/src/settings/StaffSlips/StaffSlipDetail.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Accordion, AccordionSet, diff --git a/src/settings/StaffSlips/StaffSlipForm.test.js b/src/settings/StaffSlips/StaffSlipForm.test.js index ed6f2013..c4903dae 100644 --- a/src/settings/StaffSlips/StaffSlipForm.test.js +++ b/src/settings/StaffSlips/StaffSlipForm.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { diff --git a/src/settings/StaffSlips/StaffSlipManager.test.js b/src/settings/StaffSlips/StaffSlipManager.test.js index 107f2306..6f92c432 100644 --- a/src/settings/StaffSlips/StaffSlipManager.test.js +++ b/src/settings/StaffSlips/StaffSlipManager.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { EntryManager } from '@folio/stripes/smart-components'; import StaffSlipDetail from './StaffSlipDetail'; diff --git a/src/settings/StaffSlips/TokensList/TokensList.test.js b/src/settings/StaffSlips/TokensList/TokensList.test.js index 59a8f4de..5cbe71b5 100644 --- a/src/settings/StaffSlips/TokensList/TokensList.test.js +++ b/src/settings/StaffSlips/TokensList/TokensList.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { TokensSection } from '@folio/stripes-template-editor'; import TokensList from './TokensList'; diff --git a/src/settings/StaffSlips/components/EditSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js b/src/settings/StaffSlips/components/EditSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js index fc9fec32..fc92ab8a 100644 --- a/src/settings/StaffSlips/components/EditSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js +++ b/src/settings/StaffSlips/components/EditSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import StaffSlipAboutSection from './StaffSlipAboutSection'; describe('StaffSlipAboutSectionEdit', () => { diff --git a/src/settings/StaffSlips/components/ViewSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js b/src/settings/StaffSlips/components/ViewSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js index b3767189..5f04b3a5 100644 --- a/src/settings/StaffSlips/components/ViewSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js +++ b/src/settings/StaffSlips/components/ViewSections/StaffSlipAboutSection/StaffSlipAboutSection.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import StaffSlipAboutSection from './StaffSlipAboutSection'; describe('StaffSlipAboutSection', () => { diff --git a/src/settings/StaffSlips/components/ViewSections/StaffSlipTemplateContentSection/StaffSlipTemplateContentSection.test.js b/src/settings/StaffSlips/components/ViewSections/StaffSlipTemplateContentSection/StaffSlipTemplateContentSection.test.js index e2fe678d..f88b1c7a 100644 --- a/src/settings/StaffSlips/components/ViewSections/StaffSlipTemplateContentSection/StaffSlipTemplateContentSection.test.js +++ b/src/settings/StaffSlips/components/ViewSections/StaffSlipTemplateContentSection/StaffSlipTemplateContentSection.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../../../test/jest/__mock__'; - import { PreviewModal } from '@folio/stripes-template-editor'; import StaffSlipTemplateContentSection from './StaffSlipTemplateContentSection'; diff --git a/src/settings/TitleLevelRequests/NoticeTemplates/NoticeTemplates.test.js b/src/settings/TitleLevelRequests/NoticeTemplates/NoticeTemplates.test.js index dc8e0ea2..d5e4f969 100644 --- a/src/settings/TitleLevelRequests/NoticeTemplates/NoticeTemplates.test.js +++ b/src/settings/TitleLevelRequests/NoticeTemplates/NoticeTemplates.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { Select } from '@folio/stripes/components'; diff --git a/src/settings/TitleLevelRequests/TitleLevelRequests.test.js b/src/settings/TitleLevelRequests/TitleLevelRequests.test.js index 87176da7..e3ebe0c3 100644 --- a/src/settings/TitleLevelRequests/TitleLevelRequests.test.js +++ b/src/settings/TitleLevelRequests/TitleLevelRequests.test.js @@ -1,10 +1,7 @@ -import React from 'react'; import { render, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { ConfigManager } from '@folio/stripes/smart-components'; import TitleLevelRequests from './TitleLevelRequests'; import TitleLevelRequestsForm from './TitleLevelRequestsForm'; diff --git a/src/settings/TitleLevelRequests/TitleLevelRequestsForm.test.js b/src/settings/TitleLevelRequests/TitleLevelRequestsForm.test.js index 5c0ea262..766a9a47 100644 --- a/src/settings/TitleLevelRequests/TitleLevelRequestsForm.test.js +++ b/src/settings/TitleLevelRequests/TitleLevelRequestsForm.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -7,8 +6,6 @@ import { waitFor, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../test/jest/__mock__'; - import { Button, Checkbox, diff --git a/src/settings/Validation/checkout-settings/patron-identifiers.test.js b/src/settings/Validation/checkout-settings/patron-identifiers.test.js index e5483075..1f200bac 100644 --- a/src/settings/Validation/checkout-settings/patron-identifiers.test.js +++ b/src/settings/Validation/checkout-settings/patron-identifiers.test.js @@ -3,8 +3,6 @@ import { screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import patronIdentifierValidator from './patron-identifiers'; describe('patronIdentifierValidator', () => { diff --git a/src/settings/Validation/fixed-due-date-schedule/schedules.test.js b/src/settings/Validation/fixed-due-date-schedule/schedules.test.js index fa2a3036..c05bdc98 100644 --- a/src/settings/Validation/fixed-due-date-schedule/schedules.test.js +++ b/src/settings/Validation/fixed-due-date-schedule/schedules.test.js @@ -3,8 +3,6 @@ import { screen, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import schedulesArrayValidator from './schedules'; const ARRAY_ERROR = 'ARRAY_ERROR'; diff --git a/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelect.test.js b/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelect.test.js index 5b3d93ad..d91d6592 100644 --- a/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelect.test.js +++ b/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelect.test.js @@ -1,8 +1,5 @@ -import React from 'react'; import { render, screen } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import { RadioButton } from '@folio/stripes/components'; diff --git a/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelectContainer.test.js b/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelectContainer.test.js index 31931319..b6e58235 100644 --- a/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelectContainer.test.js +++ b/src/settings/components/AnonymizingTypeSelect/AnonymizingTypeSelectContainer.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { Field } from 'react-final-form'; import AnonymizingTypeSelect from './AnonymizingTypeSelect'; diff --git a/src/settings/components/CancelButton/CancelButton.test.js b/src/settings/components/CancelButton/CancelButton.test.js index 369d93e2..93bbf05e 100644 --- a/src/settings/components/CancelButton/CancelButton.test.js +++ b/src/settings/components/CancelButton/CancelButton.test.js @@ -1,7 +1,5 @@ -import React from 'react'; import { render, cleanup } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; import CancelButton from './CancelButton'; const renderCancelButton = (props) => { diff --git a/src/settings/components/FooterPane/FooterPane.test.js b/src/settings/components/FooterPane/FooterPane.test.js index ffec223a..e4ed6455 100644 --- a/src/settings/components/FooterPane/FooterPane.test.js +++ b/src/settings/components/FooterPane/FooterPane.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, cleanup, @@ -7,8 +6,6 @@ import { import { runAxeTest } from '@folio/stripes-testing'; -import '../../../../test/jest/__mock__'; - import FooterPane from './FooterPane'; const renderFooterPane = ({ diff --git a/src/settings/components/Metadata/Metadata.test.js b/src/settings/components/Metadata/Metadata.test.js index c4876f54..2fa02a2a 100644 --- a/src/settings/components/Metadata/Metadata.test.js +++ b/src/settings/components/Metadata/Metadata.test.js @@ -5,8 +5,6 @@ import { within, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import Metadata from './Metadata'; const testIds = { diff --git a/src/settings/components/Period/Period.test.js b/src/settings/components/Period/Period.test.js index 881b43f0..7c28c1f7 100644 --- a/src/settings/components/Period/Period.test.js +++ b/src/settings/components/Period/Period.test.js @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen, @@ -6,8 +5,6 @@ import { fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { Field, } from 'react-final-form'; diff --git a/src/settings/lib/RuleEditor/RulesEditor.test.js b/src/settings/lib/RuleEditor/RulesEditor.test.js index d4659afa..ebf0f045 100644 --- a/src/settings/lib/RuleEditor/RulesEditor.test.js +++ b/src/settings/lib/RuleEditor/RulesEditor.test.js @@ -8,8 +8,6 @@ import { import { Controlled as CodeMirror } from 'react-codemirror2'; import Codemirror from 'codemirror'; -import '../../../../test/jest/__mock__'; - import RulesEditor, { handleBackspace, moveFocus, diff --git a/src/settings/lib/RuleEditor/RulesField.test.js b/src/settings/lib/RuleEditor/RulesField.test.js index a21a5dfe..ff9f8f21 100644 --- a/src/settings/lib/RuleEditor/RulesField.test.js +++ b/src/settings/lib/RuleEditor/RulesField.test.js @@ -1,8 +1,5 @@ -import React from 'react'; import { render } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import RulesEditor from './RulesEditor'; import RulesField from './RulesField'; diff --git a/src/settings/lib/RuleEditor/RulesForm.test.js b/src/settings/lib/RuleEditor/RulesForm.test.js index db4ed8a3..9e3a8501 100644 --- a/src/settings/lib/RuleEditor/RulesForm.test.js +++ b/src/settings/lib/RuleEditor/RulesForm.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { screen, render, fireEvent, } from '@folio/jest-config-stripes/testing-library/react'; -import '../../../../test/jest/__mock__'; - import { Button, TextField, diff --git a/src/settings/lib/RuleEditor/initRulesCMM.test.js b/src/settings/lib/RuleEditor/initRulesCMM.test.js index eccdace0..941dc5cc 100644 --- a/src/settings/lib/RuleEditor/initRulesCMM.test.js +++ b/src/settings/lib/RuleEditor/initRulesCMM.test.js @@ -1,5 +1,3 @@ -import React from 'react'; - import { EDITOR_KEYWORD, EDITOR_SPECIAL_SYMBOL, diff --git a/src/settings/wrappers/withPreventDelete.test.js b/src/settings/wrappers/withPreventDelete.test.js index 4f390147..c650d1b7 100644 --- a/src/settings/wrappers/withPreventDelete.test.js +++ b/src/settings/wrappers/withPreventDelete.test.js @@ -1,12 +1,9 @@ -import React from 'react'; import { render, screen, } from '@folio/jest-config-stripes/testing-library/react'; import PropTypes from 'prop-types'; -import '../../../test/jest/__mock__'; - import withPreventDelete from './withPreventDelete'; const policyInUse = 'Policy is in use!';