diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bc7b576f..fcc8e5c90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Landing page: Create hotlink from job profile name in log to the job profile details (UIDATIMP-1355) * Create hotlink from file name in job profile detail view to job log details (UIDATIMP-1356) * Add accessibility testing to automated tests in ui-data-import (UIDATIMP-1372) +* Provide "required" field for notes and electronic access subfields in field mapping (UIDATIMP-1384) * Avoid private paths in stripes-core imports (UIDATIMP-1414) * Order field mapping: Add info icon to the Acq unit field (UIDATIMP-1426) * Invoice field mapping: Add info icon to the Acq unit field (UIDATIMP-1427) @@ -26,7 +27,7 @@ * Change validation messages which were represented in code format (UIDATIMP-1473) * *BREAKING* bump `react` to `v18`, and dev-deps accordingly (UIDATIMP-1485) * Update Node.js to v18 in GitHub Actions (UIDATIMP-1507) -* Provide "required" field for notes and electronic access subfields in field mapping (UIDATIMP-1384) +* leverage jest-config-stripes for all jest and testing-library packages (UIDATIMP-1508) * *BREAKING* bump `react-intl` to `v6.4.4` (UIDATIMP-1520) ### Bugs fixed: diff --git a/jest.config.js b/jest.config.js index 3258c3d78..7d45ab5b6 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,25 +1,9 @@ -// eslint-disable-next-line import/no-extraneous-dependencies -const path = require('path'); - -const esModules = ['@folio', 'ky', 'uuid'].join('|'); +const config = require('@folio/jest-config-stripes'); +const acqConfigs = require('@folio/stripes-acq-components/jest.config'); module.exports = { - collectCoverageFrom: [ - '**/(lib|src)/**/*.{js,jsx}', - '!**/node_modules/**', - '!**/test/**', - ], - coverageDirectory: './artifacts/coverage-jest/', - coverageReporters: ['lcov'], - reporters: ['jest-junit', 'default'], - transform: { '^.+\\.(js|jsx)$': path.join(__dirname, './test/jest/jest-transformer.js') }, - transformIgnorePatterns: [`/node_modules/(?!${esModules})`], - moduleNameMapper: { - '^.+\\.(css)$': 'identity-obj-proxy', - '^.+\\.(svg)$': 'identity-obj-proxy', + ...config, + transform: { + ...acqConfigs.transform, }, - testEnvironment: 'jsdom', - testMatch: ['**/(lib|src)/**/?(*.)test.{js,jsx}'], - testPathIgnorePatterns: ['/node_modules/'], - setupFilesAfterEnv: [path.join(__dirname, './test/jest/jest.setup.js')], }; diff --git a/package.json b/package.json index bf913bbc6..f0824080b 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,9 @@ "devDependencies": { "@babel/core": "^7.17.12", "@babel/eslint-parser": "^7.17.0", - "@babel/plugin-proposal-decorators": "^7.10.5", - "@babel/plugin-transform-class-properties": "^7.10.4", - "@babel/plugin-transform-runtime": "^7.10.5", - "@babel/preset-react": "^7.10.4", + "@babel/plugin-transform-runtime": "^7.22.15", "@folio/eslint-config-stripes": "^7.0.0", + "@folio/jest-config-stripes": "^2.0.0", "@folio/stripes": "^9.0.0", "@folio/stripes-cli": "^3.0.0", "@folio/stripes-components": "~12.0.0", @@ -35,9 +33,6 @@ "@folio/stripes-smart-components": "~9.0.0", "@folio/stripes-testing": "^4.5.0", "@formatjs/cli": "^6.1.3", - "@testing-library/jest-dom": "^5.14.1", - "@testing-library/react": "^14.0.0", - "babel-jest": "^29.6.1", "babel-polyfill": "^6.26.0", "chai": "^4.2.0", "eslint": "^7.32.0", @@ -49,10 +44,6 @@ "eslint-plugin-react-hooks": "^1.7.0", "faker": "^4.1.0", "history": "^5.0.0", - "identity-obj-proxy": "^3.0.0", - "jest": "^29.6.1", - "jest-environment-jsdom": "^29.5.0", - "jest-junit": "^16.0.0", "mocha": "^9.0.0", "query-string": "^5.0.0", "react": "^18.2.0", @@ -62,9 +53,7 @@ "react-redux": "^8.0.5", "react-router": "^5.2.0", "react-router-dom": "^5.2.0", - "redux": "^4.0.5", - "regenerator-runtime": "^0.13.9", - "sinon": "^7.2.2" + "redux": "^4.0.5" }, "dependencies": { "@folio/stripes-acq-components": "~5.0.0", diff --git a/src/components/AcceptedValuesField/AcceptedValuesField.test.js b/src/components/AcceptedValuesField/AcceptedValuesField.test.js index 732b11c7d..19750e6cf 100644 --- a/src/components/AcceptedValuesField/AcceptedValuesField.test.js +++ b/src/components/AcceptedValuesField/AcceptedValuesField.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { waitFor } from '@testing-library/react'; +import { waitFor } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ActionMenu/ActionMenu.test.js b/src/components/ActionMenu/ActionMenu.test.js index 5f8f925e2..fc05e8850 100644 --- a/src/components/ActionMenu/ActionMenu.test.js +++ b/src/components/ActionMenu/ActionMenu.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../test/jest/__mock__'; diff --git a/src/components/ActionMenu/ItemTemplates/Default.test.js b/src/components/ActionMenu/ItemTemplates/Default.test.js index 77f2353e1..49d29a46a 100644 --- a/src/components/ActionMenu/ItemTemplates/Default.test.js +++ b/src/components/ActionMenu/ItemTemplates/Default.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ActionMenu/ItemTemplates/GroupAction.test.js b/src/components/ActionMenu/ItemTemplates/GroupAction.test.js index 57170326f..e512cf814 100644 --- a/src/components/ActionMenu/ItemTemplates/GroupAction.test.js +++ b/src/components/ActionMenu/ItemTemplates/GroupAction.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ActionMenu/ItemTemplates/LinkTo.test.js b/src/components/ActionMenu/ItemTemplates/LinkTo.test.js index bc662565b..6bd07b292 100644 --- a/src/components/ActionMenu/ItemTemplates/LinkTo.test.js +++ b/src/components/ActionMenu/ItemTemplates/LinkTo.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { Router } from 'react-router-dom'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/ActionMenu/menuTemplate.test.js b/src/components/ActionMenu/menuTemplate.test.js index 8a6712901..49768633d 100644 --- a/src/components/ActionMenu/menuTemplate.test.js +++ b/src/components/ActionMenu/menuTemplate.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { render, fireEvent, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../test/jest/__mock__'; diff --git a/src/components/BooleanActionField/BooleanActionField.test.js b/src/components/BooleanActionField/BooleanActionField.test.js index e5f616e84..60594ed4c 100644 --- a/src/components/BooleanActionField/BooleanActionField.test.js +++ b/src/components/BooleanActionField/BooleanActionField.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/CodeHighlight/CodeHighlight.test.js b/src/components/CodeHighlight/CodeHighlight.test.js index 334a9d27a..1949c0791 100644 --- a/src/components/CodeHighlight/CodeHighlight.test.js +++ b/src/components/CodeHighlight/CodeHighlight.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { CodeHighlight } from './CodeHighlight'; diff --git a/src/components/DataFetcher/DataFetcher.test.js b/src/components/DataFetcher/DataFetcher.test.js index b3008bd91..fa123beca 100644 --- a/src/components/DataFetcher/DataFetcher.test.js +++ b/src/components/DataFetcher/DataFetcher.test.js @@ -2,7 +2,7 @@ import React, { useContext } from 'react'; import { render, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { buildResources } from '@folio/stripes-data-transfer-components/test/helpers'; diff --git a/src/components/DatePickerDecorator/DatePickerDecorator.test.js b/src/components/DatePickerDecorator/DatePickerDecorator.test.js index 15aa7fa03..80f59d8d9 100644 --- a/src/components/DatePickerDecorator/DatePickerDecorator.test.js +++ b/src/components/DatePickerDecorator/DatePickerDecorator.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { noop } from 'lodash'; diff --git a/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js b/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js index 041c3a2c4..0f4deaa25 100644 --- a/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js +++ b/src/components/EditKeyShortcutsWrapper/EditKeyShortcutsWrapper.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { waitFor } from '@testing-library/react'; +import { waitFor } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/FieldOrganization/FieldOrganization.test.js b/src/components/FieldOrganization/FieldOrganization.test.js index 33d0486db..8f4179a4e 100644 --- a/src/components/FieldOrganization/FieldOrganization.test.js +++ b/src/components/FieldOrganization/FieldOrganization.test.js @@ -3,7 +3,7 @@ import { act, waitFor, fireEvent, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../test/jest/__mock__'; diff --git a/src/components/FolioRecordTypeSelect/FolioRecordTypeSelect.test.js b/src/components/FolioRecordTypeSelect/FolioRecordTypeSelect.test.js index 431743612..19c12cf44 100644 --- a/src/components/FolioRecordTypeSelect/FolioRecordTypeSelect.test.js +++ b/src/components/FolioRecordTypeSelect/FolioRecordTypeSelect.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ImportJobs/ImportJobs.test.js b/src/components/ImportJobs/ImportJobs.test.js index d4af856e0..ae0f3a72e 100644 --- a/src/components/ImportJobs/ImportJobs.test.js +++ b/src/components/ImportJobs/ImportJobs.test.js @@ -1,7 +1,7 @@ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; import { createMemoryHistory } from 'history'; -import { waitFor } from '@testing-library/react'; +import { waitFor } from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/ImportJobs/components/ReturnToAssignJobs/ReturnToAssignJobs.test.js b/src/components/ImportJobs/components/ReturnToAssignJobs/ReturnToAssignJobs.test.js index a47dfdb6e..d57c37a6c 100644 --- a/src/components/ImportJobs/components/ReturnToAssignJobs/ReturnToAssignJobs.test.js +++ b/src/components/ImportJobs/components/ReturnToAssignJobs/ReturnToAssignJobs.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/Jobs/Jobs.test.js b/src/components/Jobs/Jobs.test.js index 728795b87..5f5e3581d 100644 --- a/src/components/Jobs/Jobs.test.js +++ b/src/components/Jobs/Jobs.test.js @@ -3,7 +3,7 @@ import { fireEvent, waitFor, within, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ListView/ListView.test.js b/src/components/ListView/ListView.test.js index c7d9964d9..045b0ff62 100644 --- a/src/components/ListView/ListView.test.js +++ b/src/components/ListView/ListView.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import faker from 'faker'; import { noop } from 'lodash'; import { createMemoryHistory } from 'history'; diff --git a/src/components/LogViewer/LogViewer.test.js b/src/components/LogViewer/LogViewer.test.js index 438c586a9..6deaa1adb 100644 --- a/src/components/LogViewer/LogViewer.test.js +++ b/src/components/LogViewer/LogViewer.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MARCTable/MARCTable.test.js b/src/components/MARCTable/MARCTable.test.js index d15ab6802..8778855d2 100644 --- a/src/components/MARCTable/MARCTable.test.js +++ b/src/components/MARCTable/MARCTable.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MARCTable/MARCTableRow.test.js b/src/components/MARCTable/MARCTableRow.test.js index 8288b35fd..77100421c 100644 --- a/src/components/MARCTable/MARCTableRow.test.js +++ b/src/components/MARCTable/MARCTableRow.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MatchCriterion/edit/ExistingRecordSections/ExistingSectionFolio.test.js b/src/components/MatchCriterion/edit/ExistingRecordSections/ExistingSectionFolio.test.js index fd43837da..ba6d73165 100644 --- a/src/components/MatchCriterion/edit/ExistingRecordSections/ExistingSectionFolio.test.js +++ b/src/components/MatchCriterion/edit/ExistingRecordSections/ExistingSectionFolio.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MatchCriterion/edit/IncomingSectionStatic/IncomingSectionStatic.test.js b/src/components/MatchCriterion/edit/IncomingSectionStatic/IncomingSectionStatic.test.js index 07336e136..ec031dfc5 100644 --- a/src/components/MatchCriterion/edit/IncomingSectionStatic/IncomingSectionStatic.test.js +++ b/src/components/MatchCriterion/edit/IncomingSectionStatic/IncomingSectionStatic.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MatchCriterion/edit/MARCFieldSection/MARCFieldSection.test.js b/src/components/MatchCriterion/edit/MARCFieldSection/MARCFieldSection.test.js index 99938e772..bbc6a7e2f 100644 --- a/src/components/MatchCriterion/edit/MARCFieldSection/MARCFieldSection.test.js +++ b/src/components/MatchCriterion/edit/MARCFieldSection/MARCFieldSection.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MatchCriterion/edit/QualifierPartSection/QualifierPartSection.test.js b/src/components/MatchCriterion/edit/QualifierPartSection/QualifierPartSection.test.js index 3b5b85157..b0ff8c899 100644 --- a/src/components/MatchCriterion/edit/QualifierPartSection/QualifierPartSection.test.js +++ b/src/components/MatchCriterion/edit/QualifierPartSection/QualifierPartSection.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MatchCriterion/edit/QualifierSection/QualifierSection.test.js b/src/components/MatchCriterion/edit/QualifierSection/QualifierSection.test.js index 8e1d89093..1e3361ace 100644 --- a/src/components/MatchCriterion/edit/QualifierSection/QualifierSection.test.js +++ b/src/components/MatchCriterion/edit/QualifierSection/QualifierSection.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/MatchCriterion/view/ExistingRecordSections/ExistingRecordSections.test.js b/src/components/MatchCriterion/view/ExistingRecordSections/ExistingRecordSections.test.js index ceb9072e9..d41fba9e1 100644 --- a/src/components/MatchCriterion/view/ExistingRecordSections/ExistingRecordSections.test.js +++ b/src/components/MatchCriterion/view/ExistingRecordSections/ExistingRecordSections.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { waitFor } from '@testing-library/react'; +import { waitFor } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/OptionsList/OptionsList.test.js b/src/components/OptionsList/OptionsList.test.js index 809d4d08e..c96c72e94 100644 --- a/src/components/OptionsList/OptionsList.test.js +++ b/src/components/OptionsList/OptionsList.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/OverrideProtectedFieldsTable/OverrideProtectedFieldsTable.test.js b/src/components/OverrideProtectedFieldsTable/OverrideProtectedFieldsTable.test.js index f46107170..582622ba6 100644 --- a/src/components/OverrideProtectedFieldsTable/OverrideProtectedFieldsTable.test.js +++ b/src/components/OverrideProtectedFieldsTable/OverrideProtectedFieldsTable.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ProfileAssociator/tests/ProfileAssociator.test.js b/src/components/ProfileAssociator/tests/ProfileAssociator.test.js index 306c623b9..7d194a607 100644 --- a/src/components/ProfileAssociator/tests/ProfileAssociator.test.js +++ b/src/components/ProfileAssociator/tests/ProfileAssociator.test.js @@ -4,7 +4,7 @@ import { waitFor, fireEvent, act, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../test/jest/__mock__'; diff --git a/src/components/ProfileTree/ProfileBranch.test.js b/src/components/ProfileTree/ProfileBranch.test.js index c03b1f0fb..548d721d7 100644 --- a/src/components/ProfileTree/ProfileBranch.test.js +++ b/src/components/ProfileTree/ProfileBranch.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ProfileTree/ProfileLabel.test.js b/src/components/ProfileTree/ProfileLabel.test.js index e21fc1b09..6451df9a3 100644 --- a/src/components/ProfileTree/ProfileLabel.test.js +++ b/src/components/ProfileTree/ProfileLabel.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ProfileTree/ProfileLinker/LinkerButton.test.js b/src/components/ProfileTree/ProfileLinker/LinkerButton.test.js index af25954f2..9c085ea42 100644 --- a/src/components/ProfileTree/ProfileLinker/LinkerButton.test.js +++ b/src/components/ProfileTree/ProfileLinker/LinkerButton.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/ProfileTree/ProfileLinker/ProfileLinker.test.js b/src/components/ProfileTree/ProfileLinker/ProfileLinker.test.js index 90e32345c..ba3513af2 100644 --- a/src/components/ProfileTree/ProfileLinker/ProfileLinker.test.js +++ b/src/components/ProfileTree/ProfileLinker/ProfileLinker.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../test/jest/__mock__'; diff --git a/src/components/ProfileTree/ProfileTree.test.js b/src/components/ProfileTree/ProfileTree.test.js index 3fae41835..6ef8cc9ad 100644 --- a/src/components/ProfileTree/ProfileTree.test.js +++ b/src/components/ProfileTree/ProfileTree.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/RecordTypesSelect/RecordTypesSelect.test.js b/src/components/RecordTypesSelect/RecordTypesSelect.test.js index e85f4480f..c8ed04cc1 100644 --- a/src/components/RecordTypesSelect/RecordTypesSelect.test.js +++ b/src/components/RecordTypesSelect/RecordTypesSelect.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js b/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js index 93b6c98e6..bb49ce6e2 100644 --- a/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js +++ b/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { noop } from 'lodash'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/RecordTypesSelect/components/RecordItem.test.js b/src/components/RecordTypesSelect/components/RecordItem.test.js index d08077342..d41a5d5d1 100644 --- a/src/components/RecordTypesSelect/components/RecordItem.test.js +++ b/src/components/RecordTypesSelect/components/RecordItem.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/RecordTypesSelect/components/Triangle.test.js b/src/components/RecordTypesSelect/components/Triangle.test.js index 0dac33732..a8da1f924 100644 --- a/src/components/RecordTypesSelect/components/Triangle.test.js +++ b/src/components/RecordTypesSelect/components/Triangle.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { Triangle } from './Triangle'; diff --git a/src/components/RepeatableActionsField/RepeatableActionsField.test.js b/src/components/RepeatableActionsField/RepeatableActionsField.test.js index 0706e0539..4c01334a2 100644 --- a/src/components/RepeatableActionsField/RepeatableActionsField.test.js +++ b/src/components/RepeatableActionsField/RepeatableActionsField.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/SearchAndSort/SearchAndSort.test.js b/src/components/SearchAndSort/SearchAndSort.test.js index 5e12784fe..36a8a99a1 100644 --- a/src/components/SearchAndSort/SearchAndSort.test.js +++ b/src/components/SearchAndSort/SearchAndSort.test.js @@ -7,7 +7,7 @@ import { fireEvent, waitFor, render, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/Section/Section.test.js b/src/components/Section/Section.test.js index 492ddae8d..8c3e9fd3b 100644 --- a/src/components/Section/Section.test.js +++ b/src/components/Section/Section.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/Spinner/Spinner.test.js b/src/components/Spinner/Spinner.test.js index 44e10f093..fa0a164a5 100644 --- a/src/components/Spinner/Spinner.test.js +++ b/src/components/Spinner/Spinner.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/TextDate/TextDate.test.js b/src/components/TextDate/TextDate.test.js index a684821b5..4223b6708 100644 --- a/src/components/TextDate/TextDate.test.js +++ b/src/components/TextDate/TextDate.test.js @@ -1,5 +1,5 @@ import React, { createRef } from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/TreeLine/Line.test.js b/src/components/TreeLine/Line.test.js index 43096aea3..a4d443dc0 100644 --- a/src/components/TreeLine/Line.test.js +++ b/src/components/TreeLine/Line.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../test/jest/__mock__'; diff --git a/src/components/TreeLine/TreeLine.test.js b/src/components/TreeLine/TreeLine.test.js index 4e8c4fed4..16d3eee30 100644 --- a/src/components/TreeLine/TreeLine.test.js +++ b/src/components/TreeLine/TreeLine.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../test/jest/__mock__'; diff --git a/src/components/TreeView/TreeView.test.js b/src/components/TreeView/TreeView.test.js index d8871b54f..00430ad63 100644 --- a/src/components/TreeView/TreeView.test.js +++ b/src/components/TreeView/TreeView.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { screen } from '@testing-library/react'; +import { screen } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../test/jest/__mock__'; diff --git a/src/components/UploadingJobsContextProvider/UploadingJobsContextProvider.test.js b/src/components/UploadingJobsContextProvider/UploadingJobsContextProvider.test.js index f5e26b905..01fc092d0 100644 --- a/src/components/UploadingJobsContextProvider/UploadingJobsContextProvider.test.js +++ b/src/components/UploadingJobsContextProvider/UploadingJobsContextProvider.test.js @@ -2,7 +2,7 @@ import React, { useContext } from 'react'; import { waitFor, fireEvent, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { renderWithContext } from '@folio/stripes-data-transfer-components/test/jest/helpers'; diff --git a/src/components/UploadingJobsDisplay/components/FileItem/FileItem.test.js b/src/components/UploadingJobsDisplay/components/FileItem/FileItem.test.js index dcf97a1e5..f47b868ea 100644 --- a/src/components/UploadingJobsDisplay/components/FileItem/FileItem.test.js +++ b/src/components/UploadingJobsDisplay/components/FileItem/FileItem.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/components/UploadingJobsDisplay/tests/UploadingJobsDisplay.test.js b/src/components/UploadingJobsDisplay/tests/UploadingJobsDisplay.test.js index 0a4eb3d87..26912d38e 100644 --- a/src/components/UploadingJobsDisplay/tests/UploadingJobsDisplay.test.js +++ b/src/components/UploadingJobsDisplay/tests/UploadingJobsDisplay.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { Router } from 'react-router-dom'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/components/WithValidation/WithValidation.test.js b/src/components/WithValidation/WithValidation.test.js index 8e578cdd9..837c5cf27 100644 --- a/src/components/WithValidation/WithValidation.test.js +++ b/src/components/WithValidation/WithValidation.test.js @@ -3,7 +3,7 @@ import React from 'react'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { renderWithContext } from '@folio/stripes-data-transfer-components/test/jest/helpers'; diff --git a/src/components/withReferenceValues/withReferenceValues.test.js b/src/components/withReferenceValues/withReferenceValues.test.js index 2391bebf8..451896a84 100644 --- a/src/components/withReferenceValues/withReferenceValues.test.js +++ b/src/components/withReferenceValues/withReferenceValues.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/hooks/tests/useAuthoritiesByIdQuery.test.js b/src/hooks/tests/useAuthoritiesByIdQuery.test.js index 1f5ea7af0..3c92ec290 100644 --- a/src/hooks/tests/useAuthoritiesByIdQuery.test.js +++ b/src/hooks/tests/useAuthoritiesByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useInventoryHoldingsByIdQuery.test.js b/src/hooks/tests/useInventoryHoldingsByIdQuery.test.js index 243a82ca7..33266b8b4 100644 --- a/src/hooks/tests/useInventoryHoldingsByIdQuery.test.js +++ b/src/hooks/tests/useInventoryHoldingsByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useInventoryInstancesByIdQuery.test.js b/src/hooks/tests/useInventoryInstancesByIdQuery.test.js index d9910df6c..e93274f97 100644 --- a/src/hooks/tests/useInventoryInstancesByIdQuery.test.js +++ b/src/hooks/tests/useInventoryInstancesByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useInventoryItemsByIdQuery.test.js b/src/hooks/tests/useInventoryItemsByIdQuery.test.js index b903042f7..d27a762c5 100644 --- a/src/hooks/tests/useInventoryItemsByIdQuery.test.js +++ b/src/hooks/tests/useInventoryItemsByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useInvoiceLineByIdQuery.test.js b/src/hooks/tests/useInvoiceLineByIdQuery.test.js index ce684963c..ad7518de8 100644 --- a/src/hooks/tests/useInvoiceLineByIdQuery.test.js +++ b/src/hooks/tests/useInvoiceLineByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useInvoicesByIdQuery.test.js b/src/hooks/tests/useInvoicesByIdQuery.test.js index 3d9c56f64..da65c2772 100644 --- a/src/hooks/tests/useInvoicesByIdQuery.test.js +++ b/src/hooks/tests/useInvoicesByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useJobLogRecordsQuery.test.js b/src/hooks/tests/useJobLogRecordsQuery.test.js index d7dd3067e..86bc0782e 100644 --- a/src/hooks/tests/useJobLogRecordsQuery.test.js +++ b/src/hooks/tests/useJobLogRecordsQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useLocationsQuery.test.js b/src/hooks/tests/useLocationsQuery.test.js index 6c544032f..ac6e3a20d 100644 --- a/src/hooks/tests/useLocationsQuery.test.js +++ b/src/hooks/tests/useLocationsQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { renderHook, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useOrderByIdQuery.test.js b/src/hooks/tests/useOrderByIdQuery.test.js index 30b28e401..10dc63c61 100644 --- a/src/hooks/tests/useOrderByIdQuery.test.js +++ b/src/hooks/tests/useOrderByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/usePOLinesByIdQuery.test.js b/src/hooks/tests/usePOLinesByIdQuery.test.js index f979d9af5..cee1aef96 100644 --- a/src/hooks/tests/usePOLinesByIdQuery.test.js +++ b/src/hooks/tests/usePOLinesByIdQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/hooks/tests/useSRSRecordQuery.test.js b/src/hooks/tests/useSRSRecordQuery.test.js index 12ff8809f..46718fb80 100644 --- a/src/hooks/tests/useSRSRecordQuery.test.js +++ b/src/hooks/tests/useSRSRecordQuery.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import '../../../test/jest/__mock__'; diff --git a/src/index.test.js b/src/index.test.js index 5d47ea44f..98f1ea5cf 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../test/jest/__mock__'; diff --git a/src/routes/JobSummary/JobSummary.test.js b/src/routes/JobSummary/JobSummary.test.js index 81cbea160..de841e885 100644 --- a/src/routes/JobSummary/JobSummary.test.js +++ b/src/routes/JobSummary/JobSummary.test.js @@ -4,7 +4,7 @@ import { createMemoryHistory } from 'history'; import { fireEvent, render, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/routes/JobSummary/components/cells/tests/RecordNumberCell.test.js b/src/routes/JobSummary/components/cells/tests/RecordNumberCell.test.js index de336f4b2..dad769509 100644 --- a/src/routes/JobSummary/components/cells/tests/RecordNumberCell.test.js +++ b/src/routes/JobSummary/components/cells/tests/RecordNumberCell.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../test/jest/__mock__'; diff --git a/src/routes/ViewAllLogs/ViewAllLogs.test.js b/src/routes/ViewAllLogs/ViewAllLogs.test.js index 7b38caef5..fb6a8244d 100644 --- a/src/routes/ViewAllLogs/ViewAllLogs.test.js +++ b/src/routes/ViewAllLogs/ViewAllLogs.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { BrowserRouter as Router } from 'react-router-dom'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/routes/tests/Home.test.js b/src/routes/tests/Home.test.js index 0798e6f89..9a349926c 100644 --- a/src/routes/tests/Home.test.js +++ b/src/routes/tests/Home.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { BrowserRouter as Router } from 'react-router-dom'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/routes/tests/ViewJobLog.test.js b/src/routes/tests/ViewJobLog.test.js index a408ae737..ca27a1185 100644 --- a/src/routes/tests/ViewJobLog.test.js +++ b/src/routes/tests/ViewJobLog.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { BrowserRouter as Router } from 'react-router-dom'; import faker from 'faker'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/ActionProfiles/ActionProfilesForm.test.js b/src/settings/ActionProfiles/ActionProfilesForm.test.js index af6dbc8a5..b7c3599cb 100644 --- a/src/settings/ActionProfiles/ActionProfilesForm.test.js +++ b/src/settings/ActionProfiles/ActionProfilesForm.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/ActionProfiles/ViewActionProfile/ViewActionProfile.test.js b/src/settings/ActionProfiles/ViewActionProfile/ViewActionProfile.test.js index 3fec59497..a0f020257 100644 --- a/src/settings/ActionProfiles/ViewActionProfile/ViewActionProfile.test.js +++ b/src/settings/ActionProfiles/ViewActionProfile/ViewActionProfile.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { noop } from 'lodash'; diff --git a/src/settings/DataImportSettings/tests/DataImportSettings.test.js b/src/settings/DataImportSettings/tests/DataImportSettings.test.js index d2171eec8..b70a59f99 100644 --- a/src/settings/DataImportSettings/tests/DataImportSettings.test.js +++ b/src/settings/DataImportSettings/tests/DataImportSettings.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { createMemoryHistory } from 'history'; diff --git a/src/settings/FileExtensions/FileExtensionForm.test.js b/src/settings/FileExtensions/FileExtensionForm.test.js index ba158a178..5b2ade9cf 100644 --- a/src/settings/FileExtensions/FileExtensionForm.test.js +++ b/src/settings/FileExtensions/FileExtensionForm.test.js @@ -1,7 +1,7 @@ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; import faker from 'faker'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/FileExtensions/ViewFileExtension/ViewFileExtension.test.js b/src/settings/FileExtensions/ViewFileExtension/ViewFileExtension.test.js index a63969760..a3e679af4 100644 --- a/src/settings/FileExtensions/ViewFileExtension/ViewFileExtension.test.js +++ b/src/settings/FileExtensions/ViewFileExtension/ViewFileExtension.test.js @@ -4,7 +4,7 @@ import faker from 'faker'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { createMemoryHistory } from 'history'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/JobProfiles/tests/JobProfiles.test.js b/src/settings/JobProfiles/tests/JobProfiles.test.js index d5ad64ec9..5d9c16184 100644 --- a/src/settings/JobProfiles/tests/JobProfiles.test.js +++ b/src/settings/JobProfiles/tests/JobProfiles.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { MemoryRouter as Router } from 'react-router-dom'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/JobProfiles/tests/JobProfilesForm.test.js b/src/settings/JobProfiles/tests/JobProfilesForm.test.js index 3874adb9b..de2d9b99b 100644 --- a/src/settings/JobProfiles/tests/JobProfilesForm.test.js +++ b/src/settings/JobProfiles/tests/JobProfilesForm.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/JobProfiles/tests/NoJobProfilePane.test.js b/src/settings/JobProfiles/tests/NoJobProfilePane.test.js index 49649030f..a72e035f9 100644 --- a/src/settings/JobProfiles/tests/NoJobProfilePane.test.js +++ b/src/settings/JobProfiles/tests/NoJobProfilePane.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/JobProfiles/tests/ViewJobProfile.test.js b/src/settings/JobProfiles/tests/ViewJobProfile.test.js index 68caca297..0796c4ec6 100644 --- a/src/settings/JobProfiles/tests/ViewJobProfile.test.js +++ b/src/settings/JobProfiles/tests/ViewJobProfile.test.js @@ -5,7 +5,7 @@ import { fireEvent, waitFor, getByText as getByTextScreen, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { noop } from 'lodash'; diff --git a/src/settings/MARCFieldProtection/MARCFieldProtection.test.js b/src/settings/MARCFieldProtection/MARCFieldProtection.test.js index 3b5a5b451..7cf604ed2 100644 --- a/src/settings/MARCFieldProtection/MARCFieldProtection.test.js +++ b/src/settings/MARCFieldProtection/MARCFieldProtection.test.js @@ -4,7 +4,7 @@ import { noop } from 'lodash'; import { screen, fireEvent, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/AdministrativeData.test.js b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/AdministrativeData.test.js index 8ac6d0b77..7e0c58d4c 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/AdministrativeData.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/AdministrativeData.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ElectronicAccess.test.js b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ElectronicAccess.test.js index 6041b0042..f8e8f06eb 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ElectronicAccess.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ElectronicAccess.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsDetails.test.js b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsDetails.test.js index c5edf33e6..1b7ba7116 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsNotes.test.js b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsNotes.test.js index fbf833e0c..1dead9de1 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsNotes.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/HoldingsNotes.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ReceivingHistory.test.js b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ReceivingHistory.test.js index 5d956403a..37c6bbf75 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ReceivingHistory.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/HoldingsDetailsSections/tests/ReceivingHistory.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/AdministrativeData.test.js b/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/AdministrativeData.test.js index 99740f4b1..a4ab8d552 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/AdministrativeData.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/AdministrativeData.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/DescriptiveData.test.js b/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/DescriptiveData.test.js index 67b86d1c9..f73bcbd29 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/DescriptiveData.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/DescriptiveData.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/InstanceRelationship.test.js b/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/InstanceRelationship.test.js index 5174d267a..2430e1184 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/InstanceRelationship.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InstanceDetailsSections/tests/InstanceRelationship.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/ExtendedInformation.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/ExtendedInformation.test.js index a003057ac..874cbe7ad 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/ExtendedInformation.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/ExtendedInformation.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, within, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceAdjustments.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceAdjustments.test.js index f1c196247..8d210a833 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceAdjustments.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceAdjustments.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceInformation.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceInformation.test.js index 9b06113b4..646bf7575 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceInformation.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceInformation.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineAdjustments.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineAdjustments.test.js index e97c483ad..5f1902075 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineAdjustments.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineAdjustments.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { noop, get, diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineFundDistribution.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineFundDistribution.test.js index c1ee92d3e..9c0e64a80 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineFundDistribution.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineFundDistribution.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { noop, get, diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineInformation.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineInformation.test.js index e5c9f796f..8387f634c 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineInformation.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/InvoiceLineInformation.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, within, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { get } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/VendorInformation.test.js b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/VendorInformation.test.js index bd2084559..600c9d517 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/VendorInformation.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/InvoiceDetailSection/tests/VendorInformation.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { within } from '@testing-library/react'; +import { within } from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/AdministrativeData.test.js b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/AdministrativeData.test.js index 8612a7958..72fc1172a 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/AdministrativeData.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/AdministrativeData.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ElectronicAccess.test.js b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ElectronicAccess.test.js index d6721c7bf..d5794ef32 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ElectronicAccess.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ElectronicAccess.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/EnumerationData.test.js b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/EnumerationData.test.js index 24e8927d2..0336a97d8 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/EnumerationData.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/EnumerationData.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ItemNotes.test.js b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ItemNotes.test.js index 47be0b7a0..f56f8adbd 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ItemNotes.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/ItemNotes.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/LoanAndAvailability.test.js b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/LoanAndAvailability.test.js index f5d0a2785..389283972 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/LoanAndAvailability.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/ItemDetailSection/tests/LoanAndAvailability.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import '../../../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/CostDetails.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/CostDetails.test.js index a3196bc28..50346624b 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/CostDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/CostDetails.test.js @@ -2,7 +2,7 @@ import React from 'react'; import { fireEvent, within, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/EResourcesDetails.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/EResourcesDetails.test.js index e96b0e7b6..4befb2b6f 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/EResourcesDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/EResourcesDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/FundDistribution.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/FundDistribution.test.js index 3f2ecd275..6738a96bb 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/FundDistribution.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/FundDistribution.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/ItemDetails.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/ItemDetails.test.js index 5ddcbceb3..6996d069a 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/ItemDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/ItemDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Location.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Location.test.js index 4e921eed8..d85c0e62e 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Location.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Location.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/OrderInformation.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/OrderInformation.test.js index 0acdf5b6b..62fe5cfad 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/OrderInformation.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/OrderInformation.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/POLineDetails.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/POLineDetails.test.js index 7e0ca117e..c6064a36d 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/POLineDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/POLineDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/PhysicalResourceDetails.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/PhysicalResourceDetails.test.js index b91697997..97a188860 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/PhysicalResourceDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/PhysicalResourceDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Vendor.test.js b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Vendor.test.js index 721b83aaf..6f2e5d62b 100644 --- a/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Vendor.test.js +++ b/src/settings/MappingProfiles/detailsSections/edit/OrderDetailSection/tests/Vendor.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/hooks/useDisabledOrderFields.test.js b/src/settings/MappingProfiles/detailsSections/hooks/useDisabledOrderFields.test.js index 5a05f587d..4d6cff979 100644 --- a/src/settings/MappingProfiles/detailsSections/hooks/useDisabledOrderFields.test.js +++ b/src/settings/MappingProfiles/detailsSections/hooks/useDisabledOrderFields.test.js @@ -1,4 +1,4 @@ -import { renderHook } from '@testing-library/react'; +import { renderHook } from '@folio/jest-config-stripes/testing-library/react'; import '../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingBoolFieldValue.test.js b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingBoolFieldValue.test.js index ceb6ad22c..cb0e60017 100644 --- a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingBoolFieldValue.test.js +++ b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingBoolFieldValue.test.js @@ -1,4 +1,4 @@ -import { renderHook } from '@testing-library/react'; +import { renderHook } from '@folio/jest-config-stripes/testing-library/react'; import * as reactRedux from 'react-redux'; import '../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingFieldValue.test.js b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingFieldValue.test.js index f1b45e482..875c3bd83 100644 --- a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingFieldValue.test.js +++ b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingFieldValue.test.js @@ -1,4 +1,4 @@ -import { renderHook } from '@testing-library/react'; +import { renderHook } from '@folio/jest-config-stripes/testing-library/react'; import * as reactRedux from 'react-redux'; import '../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingRefValues.test.js b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingRefValues.test.js index 572d819c3..16224118d 100644 --- a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingRefValues.test.js +++ b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingRefValues.test.js @@ -1,4 +1,4 @@ -import { renderHook } from '@testing-library/react'; +import { renderHook } from '@folio/jest-config-stripes/testing-library/react'; import * as reactRedux from 'react-redux'; import '../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingValueFromLookup.test.js b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingValueFromLookup.test.js index 21fe0052e..6b82b0129 100644 --- a/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingValueFromLookup.test.js +++ b/src/settings/MappingProfiles/detailsSections/hooks/useFieldMappingValueFromLookup.test.js @@ -1,4 +1,4 @@ -import { renderHook } from '@testing-library/react'; +import { renderHook } from '@folio/jest-config-stripes/testing-library/react'; import '../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/hooks/useOrganizationValue.test.js b/src/settings/MappingProfiles/detailsSections/hooks/useOrganizationValue.test.js index 52b009e9b..9d5fc35dd 100644 --- a/src/settings/MappingProfiles/detailsSections/hooks/useOrganizationValue.test.js +++ b/src/settings/MappingProfiles/detailsSections/hooks/useOrganizationValue.test.js @@ -6,7 +6,7 @@ import { import { waitFor, renderHook, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import faker from 'faker'; import '../../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/detailsSections/view/tests/MappingHoldingsDetails.test.js b/src/settings/MappingProfiles/detailsSections/view/tests/MappingHoldingsDetails.test.js index b81f290c2..a8bdd8343 100644 --- a/src/settings/MappingProfiles/detailsSections/view/tests/MappingHoldingsDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/view/tests/MappingHoldingsDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/view/tests/MappingInstanceDetails.test.js b/src/settings/MappingProfiles/detailsSections/view/tests/MappingInstanceDetails.test.js index 4aa318471..f19161827 100644 --- a/src/settings/MappingProfiles/detailsSections/view/tests/MappingInstanceDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/view/tests/MappingInstanceDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/view/tests/MappingInvoiceDetails.test.js b/src/settings/MappingProfiles/detailsSections/view/tests/MappingInvoiceDetails.test.js index c1b9a3505..d67ebc893 100644 --- a/src/settings/MappingProfiles/detailsSections/view/tests/MappingInvoiceDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/view/tests/MappingInvoiceDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/detailsSections/view/tests/MappingItemDetails.test.js b/src/settings/MappingProfiles/detailsSections/view/tests/MappingItemDetails.test.js index 6f4c67600..6837bbde5 100644 --- a/src/settings/MappingProfiles/detailsSections/view/tests/MappingItemDetails.test.js +++ b/src/settings/MappingProfiles/detailsSections/view/tests/MappingItemDetails.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { runAxeTest } from '@folio/stripes-testing'; import { diff --git a/src/settings/MappingProfiles/tests/MappingProfilesForm.test.js b/src/settings/MappingProfiles/tests/MappingProfilesForm.test.js index d0b57ead8..52d36d6ef 100644 --- a/src/settings/MappingProfiles/tests/MappingProfilesForm.test.js +++ b/src/settings/MappingProfiles/tests/MappingProfilesForm.test.js @@ -4,7 +4,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { act, fireEvent, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import '../../../../test/jest/__mock__'; diff --git a/src/settings/MappingProfiles/tests/ViewMappingProfile.test.js b/src/settings/MappingProfiles/tests/ViewMappingProfile.test.js index 95ad3b0ac..e1e632016 100644 --- a/src/settings/MappingProfiles/tests/ViewMappingProfile.test.js +++ b/src/settings/MappingProfiles/tests/ViewMappingProfile.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; diff --git a/src/settings/MatchProfiles/MatchProfiles.test.js b/src/settings/MatchProfiles/MatchProfiles.test.js index aaaf1b3cf..1dd24f6ca 100644 --- a/src/settings/MatchProfiles/MatchProfiles.test.js +++ b/src/settings/MatchProfiles/MatchProfiles.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { BrowserRouter as Router } from 'react-router-dom'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; diff --git a/src/settings/MatchProfiles/MatchProfilesForm.test.js b/src/settings/MatchProfiles/MatchProfilesForm.test.js index 6c875b4a5..a8903598c 100644 --- a/src/settings/MatchProfiles/MatchProfilesForm.test.js +++ b/src/settings/MatchProfiles/MatchProfilesForm.test.js @@ -1,6 +1,6 @@ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import { noop } from 'lodash'; import { runAxeTest } from '@folio/stripes-testing'; diff --git a/src/settings/MatchProfiles/ViewMatchProfile/ViewMatchProfile.test.js b/src/settings/MatchProfiles/ViewMatchProfile/ViewMatchProfile.test.js index faba6005f..7fe129785 100644 --- a/src/settings/MatchProfiles/ViewMatchProfile/ViewMatchProfile.test.js +++ b/src/settings/MatchProfiles/ViewMatchProfile/ViewMatchProfile.test.js @@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'; import { fireEvent, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { noop } from 'lodash'; import { createMemoryHistory } from 'history'; diff --git a/src/utils/tests/checkboxList.test.js b/src/utils/tests/checkboxList.test.js index c8c8e5052..198eb2b2a 100644 --- a/src/utils/tests/checkboxList.test.js +++ b/src/utils/tests/checkboxList.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import { render, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { useCheckboxList, diff --git a/src/utils/tests/fileNameCellFormatter.test.js b/src/utils/tests/fileNameCellFormatter.test.js index 7e36a5cab..934cd3d11 100644 --- a/src/utils/tests/fileNameCellFormatter.test.js +++ b/src/utils/tests/fileNameCellFormatter.test.js @@ -1,5 +1,5 @@ import { Router } from 'react-router-dom'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import '../../../test/jest/__mock__'; diff --git a/src/utils/tests/hooks.test.js b/src/utils/tests/hooks.test.js index 258a617b4..7c294059e 100644 --- a/src/utils/tests/hooks.test.js +++ b/src/utils/tests/hooks.test.js @@ -3,7 +3,7 @@ import { fireEvent, render, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { usePrevious } from '../hooks'; function TestComponent() { diff --git a/src/utils/tests/jobProfileNameCellFormatter.test.js b/src/utils/tests/jobProfileNameCellFormatter.test.js index c4ade17d6..62d57c23d 100644 --- a/src/utils/tests/jobProfileNameCellFormatter.test.js +++ b/src/utils/tests/jobProfileNameCellFormatter.test.js @@ -1,5 +1,5 @@ import { Router } from 'react-router-dom'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { createMemoryHistory } from 'history'; import '../../../test/jest/__mock__'; diff --git a/src/utils/tests/useForceUpdate.test.js b/src/utils/tests/useForceUpdate.test.js index 634faded1..cae5d11ba 100644 --- a/src/utils/tests/useForceUpdate.test.js +++ b/src/utils/tests/useForceUpdate.test.js @@ -8,7 +8,7 @@ import { fireEvent, render, waitFor, -} from '@testing-library/react'; +} from '@folio/jest-config-stripes/testing-library/react'; import { useForceUpdate } from '../useForceUpdate'; diff --git a/src/utils/tests/withProfileWrapper.test.js b/src/utils/tests/withProfileWrapper.test.js index 1958fffb3..65098cffc 100644 --- a/src/utils/tests/withProfileWrapper.test.js +++ b/src/utils/tests/withProfileWrapper.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { withProfileWrapper } from '../withProfileWrapper'; describe('withProfileWrapper HOC', () => { diff --git a/test/jest/babel.config.js b/test/jest/babel.config.js deleted file mode 100644 index 0af274d46..000000000 --- a/test/jest/babel.config.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = { - presets: [ - '@babel/preset-env', - ['@babel/preset-react', { runtime: 'automatic' }], - ], - plugins: [ - ['@babel/plugin-proposal-decorators', { legacy: true }], - ['@babel/plugin-transform-class-properties', { loose: true }], - ['@babel/plugin-transform-private-methods', { loose: true }], - ['@babel/plugin-transform-private-property-in-object', { loose: true }], - '@babel/plugin-transform-runtime', - ], -}; diff --git a/test/jest/helpers/renderWithIntl.js b/test/jest/helpers/renderWithIntl.js index eacaf2200..872fc31d4 100644 --- a/test/jest/helpers/renderWithIntl.js +++ b/test/jest/helpers/renderWithIntl.js @@ -1,5 +1,5 @@ import React from 'react'; -import { render } from '@testing-library/react'; +import { render } from '@folio/jest-config-stripes/testing-library/react'; import { Harness } from '../../helpers'; diff --git a/test/jest/helpers/shortcuts.js b/test/jest/helpers/shortcuts.js index 7b9e58f84..f5c203ebd 100644 --- a/test/jest/helpers/shortcuts.js +++ b/test/jest/helpers/shortcuts.js @@ -1,4 +1,4 @@ -import { fireEvent } from '@testing-library/react'; +import { fireEvent } from '@folio/jest-config-stripes/testing-library/react'; export const openEditShortcut = element => { fireEvent.keyDown(element, { diff --git a/test/jest/jest-transformer.js b/test/jest/jest-transformer.js deleted file mode 100644 index 353f34888..000000000 --- a/test/jest/jest-transformer.js +++ /dev/null @@ -1,5 +0,0 @@ -const babelJest = require('babel-jest'); - -const babelConf = require('./babel.config'); - -module.exports = babelJest.createTransformer(babelConf); diff --git a/test/jest/jest.setup.js b/test/jest/jest.setup.js deleted file mode 100644 index 666127af3..000000000 --- a/test/jest/jest.setup.js +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom/extend-expect';