Kill off enzyme in preference of react testing library (#10255)

This commit is contained in:
Michael Telatynski
2023-03-06 15:17:46 +00:00
committed by GitHub
parent 394bffbae4
commit bda54a8b20
7 changed files with 123 additions and 447 deletions
-6
View File
@@ -15,14 +15,8 @@ limitations under the License.
*/
import "@testing-library/jest-dom";
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
// eslint-disable-next-line deprecate/import
import { configure } from "enzyme";
import "blob-polyfill"; // https://github.com/jsdom/jsdom/issues/2555
// Enable the enzyme mocks
configure({ adapter: new Adapter() });
// Very carefully enable the mocks for everything else in
// a specific order. We use this order to ensure we properly
// establish an application state that actually works.