Skip to content

Commit

Permalink
UIPFIMP-59: upgrade React to v18 and remove bigtest (#146)
Browse files Browse the repository at this point in the history
mariia-aloshyna authored Aug 31, 2023
1 parent 70c0d27 commit 09c6db9
Showing 33 changed files with 34 additions and 1,362 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Change history for ui-plugin-find-import-profile

## **6.1.0** (in progress)
## **7.0.0** (in progress)

### Features added:
* Add accessibiity testing to automated tests in UIPFIMP (UIPFIMP-57)
* Return profile associations when linking the profile instead of the record itself (UIPFIMP-58)
* Update Node.js to v18 in GitHub Actions (UIPFIMP-60)
* *BREAKING* bump `react` to `v18`, and get rid of bigtest (UIPFIMP-59)

## [6.0.1](https://github.com/folio-org/ui-plugin-find-import-profile/tree/v6.0.1) (2023-02-24)

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './FindImportProfile';
export { default } from './src/FindImportProfile';
5 changes: 3 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const path = require('path');

const esModules = ['@folio', 'ky'].join('|');
const esModules = ['@folio', 'ky', 'uuid'].join('|');

module.exports = {
collectCoverageFrom: [
@@ -18,7 +18,8 @@ module.exports = {
'^.+\\.(css)$': 'identity-obj-proxy',
'^.+\\.(svg)$': 'identity-obj-proxy',
},
testMatch: ['**/FindImportProfile/**/?(*.)test.{js,jsx}'],
testEnvironment: 'jsdom',
testMatch: ['**/(lib|src)/**/?(*.)test.{js,jsx}'],
testPathIgnorePatterns: ['/node_modules/'],
setupFilesAfterEnv: [path.join(__dirname, './test/jest/jest.setup.js')],
};
2 changes: 0 additions & 2 deletions karma.conf.js

This file was deleted.

44 changes: 18 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/plugin-find-import-profile",
"version": "6.0.1",
"version": "7.0.0",
"description": "Find and select Data Import Profiles plugin for Stripes",
"repository": "folio-org/ui-plugin-find-import-profile",
"publishConfig": {
@@ -34,24 +34,19 @@
"devDependencies": {
"@babel/core": "^7.17.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-transform-class-properties": "^7.16.0",
"@babel/plugin-proposal-decorators": "^7.16.4",
"@babel/plugin-transform-class-properties": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-react": "^7.16.0",
"@bigtest/interactor": "^0.9.1",
"@bigtest/mocha": "^0.5.2",
"@bigtest/react": "^0.1.2",
"@folio/eslint-config-stripes": "^6.1.0",
"@folio/stripes": "^8.0.0",
"@folio/stripes-cli": "^2.6.0",
"@folio/eslint-config-stripes": "^7.0.0",
"@folio/stripes": "^9.0.0",
"@folio/stripes-cli": "^3.0.0",
"@folio/stripes-testing": "^4.5.0",
"@formatjs/cli": "^4.2.10",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.1.2",
"babel-jest": "^26.1.0",
"@testing-library/react": "^14.0.0",
"babel-jest": "^29.6.3",
"babel-polyfill": "^6.26.0",
"chai": "^4.2.0",
"eslint": "^7.32.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-babel": "^5.3.0",
@@ -60,31 +55,28 @@
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^1.7.0",
"identity-obj-proxy": "^3.0.0",
"inflected": "^2.0.4",
"jest": "^26.1.0",
"jest-junit": "^13.0.0",
"miragejs": "^0.1.40",
"mocha": "^9.0.0",
"query-string": "^5.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"jest": "^29.6.3",
"jest-environment-jsdom": "^29.5.0",
"jest-junit": "^16.0.0",
"query-string": "^7.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intl": "^5.7.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"sinon": "^7.2.2"
"react-router-dom": "^5.2.0"
},
"dependencies": {
"@folio/data-import": "^6.0.0",
"@folio/stripes-acq-components": "~4.0.0",
"@folio/stripes-data-transfer-components": "^5.4.0",
"@folio/data-import": "^7.0.0",
"@folio/stripes-acq-components": "^5.0.0",
"@folio/stripes-data-transfer-components": "^6.0.0",
"classnames": "^2.2.5",
"lodash": "^4.16.4",
"prop-types": "^15.6.0",
"redux-form": "^8.3.7"
},
"peerDependencies": {
"@folio/stripes": "^8.0.0",
"react": "^17.0.2",
"@folio/stripes": "^9.0.0",
"react": "^18.2.0",
"react-intl": "^5.7.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -7,9 +7,9 @@ import { runAxeTest } from '@folio/stripes-testing';

import { renderWithIntl } from '@folio/stripes-data-transfer-components/test/jest/helpers';

import '../test/jest/__mock__';
import '../../test/jest/__mock__';
import { buildStripes } from '@folio/data-import/test/jest/helpers';
import { translationsProperties } from '../test/jest/helpers';
import { translationsProperties } from '../../test/jest/helpers';

import FindImportProfile from './FindImportProfile';

Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ import { runAxeTest } from '@folio/stripes-testing';

import { renderWithIntl } from '@folio/stripes-data-transfer-components/test/jest/helpers';

import '../../../test/jest/__mock__';
import '../../../../test/jest/__mock__';
import {
buildMutator,
buildResources,
} from '@folio/stripes-data-transfer-components/test/helpers';
import { buildStripes } from '@folio/data-import/test/jest/helpers';
import { actionProfilesShape } from '@folio/data-import/src/settings/ActionProfiles';
import { translationsProperties } from '../../../test/jest/helpers';
import { translationsProperties } from '../../../../test/jest/helpers';

import ActionProfilesContainer from '../ActionProfilesContainer';

Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ import { runAxeTest } from '@folio/stripes-testing';

import { renderWithIntl } from '@folio/stripes-data-transfer-components/test/jest/helpers';

import '../../../test/jest/__mock__';
import '../../../../test/jest/__mock__';
import {
buildMutator,
buildResources,
} from '@folio/stripes-data-transfer-components/test/helpers';
import { buildStripes } from '@folio/data-import/test/jest/helpers';
import { jobProfilesShape } from '@folio/data-import/src/settings/JobProfiles';
import { translationsProperties } from '../../../test/jest/helpers';
import { translationsProperties } from '../../../../test/jest/helpers';

import JobProfilesContainer from '../JobProfilesContainer';

Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ import { runAxeTest } from '@folio/stripes-testing';

import { renderWithIntl } from '@folio/stripes-data-transfer-components/test/jest/helpers';

import '../../../test/jest/__mock__';
import '../../../../test/jest/__mock__';
import {
buildMutator,
buildResources,
} from '@folio/stripes-data-transfer-components/test/helpers';
import { buildStripes } from '@folio/data-import/test/jest/helpers';
import { mappingProfilesShape } from '@folio/data-import/src/settings/MappingProfiles';
import { translationsProperties } from '../../../test/jest/helpers';
import { translationsProperties } from '../../../../test/jest/helpers';

import MappingProfilesContainer from '../MappingProfilesContainer';

Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ import { runAxeTest } from '@folio/stripes-testing';

import { renderWithIntl } from '@folio/stripes-data-transfer-components/test/jest/helpers';

import '../../../test/jest/__mock__';
import '../../../../test/jest/__mock__';
import {
buildMutator,
buildResources,
} from '@folio/stripes-data-transfer-components/test/helpers';
import { buildStripes } from '@folio/data-import/test/jest/helpers';
import { matchProfilesShape } from '@folio/data-import/src/settings/MatchProfiles';
import { translationsProperties } from '../../../test/jest/helpers';
import { translationsProperties } from '../../../../test/jest/helpers';

import MatchProfilesContainer from '../MatchProfilesContainer';

File renamed without changes.
8 changes: 0 additions & 8 deletions test/bigtest/.eslintrc

This file was deleted.

82 changes: 0 additions & 82 deletions test/bigtest/helpers/PluginHarness.js

This file was deleted.

83 changes: 0 additions & 83 deletions test/bigtest/helpers/PluginHarnessSingleSelect.js

This file was deleted.

38 changes: 0 additions & 38 deletions test/bigtest/helpers/appInit.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/bigtest/index.js

This file was deleted.

12 changes: 0 additions & 12 deletions test/bigtest/interactors/ApplicationInteractor.js

This file was deleted.

53 changes: 0 additions & 53 deletions test/bigtest/interactors/findImportProfileInteractor.js

This file was deleted.

69 changes: 0 additions & 69 deletions test/bigtest/mocks/actionProfiles.js

This file was deleted.

66 changes: 0 additions & 66 deletions test/bigtest/mocks/fieldMappingProfiles.js

This file was deleted.

28 changes: 0 additions & 28 deletions test/bigtest/mocks/profileAssociations.js

This file was deleted.

31 changes: 0 additions & 31 deletions test/bigtest/network/index.js

This file was deleted.

253 changes: 0 additions & 253 deletions test/bigtest/tests/findImportProfiles.e2e.js

This file was deleted.

193 changes: 0 additions & 193 deletions test/bigtest/tests/findImportProfilesSingleSelect.e2e.js

This file was deleted.

397 changes: 0 additions & 397 deletions test/bigtest/tests/relinkConfirmationModal.e2e.js

This file was deleted.

0 comments on commit 09c6db9

Please sign in to comment.