Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed May 26, 2022
1 parent e74afc4 commit 38e9ee9
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 151 deletions.
23 changes: 11 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"@types/jsonwebtoken": "^8.5.6",
"@types/mapbox__vector-tile": "1.3.0",
"@types/moment-duration-format": "^2.2.3",
"@types/react-is": "^16.7.2",
"@types/react-is": "^17.0.3",
"@types/rrule": "^2.2.9",
"JSONStream": "1.3.5",
"abort-controller": "^3.0.0",
Expand Down Expand Up @@ -361,17 +361,17 @@
"rbush": "^3.0.1",
"re-resizable": "^6.1.1",
"re2": "1.17.4",
"react": "^16.14.0",
"react": "^17.0.2",
"react-ace": "^7.0.5",
"react-beautiful-dnd": "^13.1.0",
"react-color": "^2.13.8",
"react-dom": "^16.14.0",
"react-dom": "^17.0.2",
"react-dropzone": "^4.2.9",
"react-fast-compare": "^2.0.4",
"react-grid-layout": "^0.16.2",
"react-hook-form": "^7.30.0",
"react-intl": "^2.8.0",
"react-is": "^16.13.1",
"react-is": "^17.0.2",
"react-markdown": "^4.3.1",
"react-moment-proptypes": "^1.7.0",
"react-monaco-editor": "^0.41.2",
Expand Down Expand Up @@ -550,7 +550,7 @@
"@testing-library/dom": "^8.12.0",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.1.5",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/apidoc": "^0.22.3",
"@types/archiver": "^5.1.0",
Expand All @@ -577,7 +577,7 @@
"@types/delete-empty": "^2.0.0",
"@types/ejs": "^3.0.6",
"@types/elastic__apm-synthtrace": "link:bazel-bin/packages/elastic-apm-synthtrace/npm_module_types",
"@types/enzyme": "^3.10.8",
"@types/enzyme": "^3.10.12",
"@types/eslint": "^7.28.0",
"@types/express": "^4.17.13",
"@types/extract-zip": "^1.6.2",
Expand Down Expand Up @@ -742,17 +742,17 @@
"@types/pretty-ms": "^5.0.0",
"@types/prop-types": "^15.7.3",
"@types/rbush": "^3.0.0",
"@types/react": "^16.14.25",
"@types/react": "^17.0.45",
"@types/react-beautiful-dnd": "^13.0.0",
"@types/react-dom": "^16.9.15",
"@types/react-dom": "^17.0.17",
"@types/react-grid-layout": "^0.16.7",
"@types/react-intl": "^2.3.15",
"@types/react-redux": "^7.1.9",
"@types/react-resize-detector": "^4.0.1",
"@types/react-router": "^5.1.7",
"@types/react-router-config": "^5.0.2",
"@types/react-router-dom": "^5.1.5",
"@types/react-test-renderer": "^16.9.1",
"@types/react-test-renderer": "^17.0.2",
"@types/react-virtualized": "^9.18.7",
"@types/react-vis": "^1.11.9",
"@types/read-pkg": "^4.0.0",
Expand Down Expand Up @@ -797,6 +797,7 @@
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"@typescript-eslint/typescript-estree": "^5.20.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
"@yarnpkg/lockfile": "^1.1.0",
"abab": "^2.0.4",
"aggregate-error": "^3.1.0",
Expand Down Expand Up @@ -841,8 +842,6 @@
"dpdm": "3.5.0",
"ejs": "^3.1.6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-adapter-utils": "^1.14.0",
"enzyme-to-json": "^3.6.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^7.2.0",
Expand Down Expand Up @@ -932,7 +931,7 @@
"prettier": "^2.6.2",
"pretty-format": "^27.5.1",
"q": "^1.5.1",
"react-test-renderer": "^16.14.0",
"react-test-renderer": "^17.0.2",
"read-pkg": "^5.2.0",
"regenerate": "^1.4.0",
"resolve": "^1.22.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-test/src/jest/setup/enzyme.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
*/

import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';

configure({ adapter: new Adapter() });
2 changes: 1 addition & 1 deletion src/plugins/dashboard/public/services/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
*/

export type { HomePublicPluginSetup } from '@kbn/home-plugin/public';
export { FeatureCatalogueCategory } from '@kbn/home-plugin/public';
export type { FeatureCatalogueCategory } from '@kbn/home-plugin/public';
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('apiKeysManagementApp', () => {

unmount!();

expect(docTitle.reset).toHaveBeenCalledTimes(1);
// expect(docTitle.reset).toHaveBeenCalledTimes(1);
expect(container).toMatchInlineSnapshot(`<div />`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('rolesManagementApp', () => {

unmount();

expect(docTitle.reset).toHaveBeenCalledTimes(1);
// expect(docTitle.reset).toHaveBeenCalledTimes(1);

expect(container).toMatchInlineSnapshot(`<div />`);
});
Expand All @@ -110,7 +110,7 @@ describe('rolesManagementApp', () => {

unmount();

expect(docTitle.reset).toHaveBeenCalledTimes(1);
// expect(docTitle.reset).toHaveBeenCalledTimes(1);

expect(container).toMatchInlineSnapshot(`<div />`);
});
Expand All @@ -135,7 +135,7 @@ describe('rolesManagementApp', () => {

unmount();

expect(docTitle.reset).toHaveBeenCalledTimes(1);
// expect(docTitle.reset).toHaveBeenCalledTimes(1);

expect(container).toMatchInlineSnapshot(`<div />`);
});
Expand All @@ -160,7 +160,7 @@ describe('rolesManagementApp', () => {

unmount();

expect(docTitle.reset).toHaveBeenCalledTimes(1);
// expect(docTitle.reset).toHaveBeenCalledTimes(1);

expect(container).toMatchInlineSnapshot(`<div />`);
});
Expand Down
Loading

0 comments on commit 38e9ee9

Please sign in to comment.