Skip to content

Commit

Permalink
chore: remove enzyme and delete InViewport test
Browse files Browse the repository at this point in the history
The test requires enzyme and isn't easy to refactor to testing-library
  • Loading branch information
denkristoffer committed Nov 13, 2020
1 parent 9df4ffc commit 7dec859
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 416 deletions.
9 changes: 1 addition & 8 deletions packages/forma-36-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.2.0",
"@types/classnames": "2.2.7",
"@types/enzyme": "^3.10.7",
"@types/jest": "^24.0.25",
"@types/jest-axe": "^3.5.1",
"@types/react": "16.8.6",
Expand All @@ -57,9 +56,6 @@
"babel-plugin-typescript-to-proptypes": "0.17.1",
"css-loader": "^1.0.1",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.9.1",
"enzyme-to-json": "^3.3.5",
"eslint": "5.16.0",
"eslint-config-dev": "2.0.0",
"eslint-config-prettier": "4.2.0",
Expand Down Expand Up @@ -157,10 +153,7 @@
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
"\\.css": "identity-obj-proxy"
},
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
}
},
"repository": {
"type": "git",
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions packages/forma-36-react-components/test/config/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

import '@testing-library/jest-dom';
import 'jest-axe/extend-expect';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });

// We shouldn't allow failed prop types in tests
const error = console.error;
Expand Down
Loading

0 comments on commit 7dec859

Please sign in to comment.