Skip to content

Commit

Permalink
Get rid of Enzyme 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
julianguyen committed Jun 10, 2021
1 parent 737601b commit e7009ce
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 266 deletions.
1 change: 0 additions & 1 deletion client/.flowconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[ignore]
.*/__tests__/.*
.*/node_modules/draft-js/.*
.*/node_modules/enzyme-matchers/.*
.*/node_modules/radium/.*

[include]
Expand Down
5 changes: 1 addition & 4 deletions client/app/components/Chart/__tests__/ChartControl.spec.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/**
* @flow
* Enzyme samples: https://gist.github.com/richardscarrott/d89b37aff55ccc504193335198e676d1
*/
// @flow
import React from 'react';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
Expand Down
4 changes: 0 additions & 4 deletions client/app/libs/testHelper.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

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

Object.defineProperty(window, 'alert', {
value: () => {},
Expand Down
2 changes: 0 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
"canvas": "^2.6.1",
"compression-webpack-plugin": "^4.0.0",
"css-loader": "^3.5.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.6.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-import-resolver-webpack": "^0.12.1",
Expand Down
Loading

0 comments on commit e7009ce

Please sign in to comment.