Replace enzyme with testing-library/react

Enzyme is not compatible with react 17.

Change-Id: If9bca2c482bfe10a18d2ee2bc213dab966849b5b
This commit is contained in:
Manuel Stahl
2021-05-04 19:12:49 +02:00
parent c8082a7198
commit 5208198b76
5 changed files with 19 additions and 320 deletions

View File

@@ -1,9 +1,9 @@
import React from "react";
import { shallow } from "enzyme";
import { render } from "@testing-library/react";
import App from "./App";
describe("App", () => {
it("renders", () => {
shallow(<App />);
render(<App />);
});
});