diff --git a/buildtool/README.md b/buildtool/README.md index 749de27680..f19726cf19 100644 --- a/buildtool/README.md +++ b/buildtool/README.md @@ -70,9 +70,6 @@ configuration from [config/jest.config.js](./config/jest.config.js) and adds support for [enzyme](https://enzymejs.github.io/enzyme/) and [jest-dom-matchers](https://github.com/testing-library/jest-dom). -Enzymes rendering functions `shallow`, `mount` and `render` are available as -globals in the test cases. See [jest.setup.js](./config/jest.setup.js) for details. - Any parameter passed to this command will be forwarded to jest, e.g. `ffe-buildtool jtest --coverage` will invoke `jest --coverage` behind the scenes. diff --git a/buildtool/config/jest.setup.js b/buildtool/config/jest.setup.js index 8d28a0dfe8..7b0828bfa8 100644 --- a/buildtool/config/jest.setup.js +++ b/buildtool/config/jest.setup.js @@ -1,11 +1 @@ -// do not import these render functions yourself in your test case, or react -// will be get confused and cannot find enzyme. -import { configure, shallow, render, mount } from 'enzyme'; -import Adapter from 'enzyme-adapter-react-16'; import '@testing-library/jest-dom'; - -configure({ adapter: new Adapter() }); - -global.shallow = shallow; -global.render = render; -global.mount = mount; diff --git a/buildtool/package.json b/buildtool/package.json index 7d87879865..aeccd50853 100644 --- a/buildtool/package.json +++ b/buildtool/package.json @@ -27,8 +27,6 @@ "babel-jest": "^29.1.2", "commander": "^8.3.0", "copyfiles": "^2.4.1", - "enzyme": "^3.7.0", - "enzyme-adapter-react-16": "^1.7.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "postcss-less": "^6.0.0",