mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 03:34:56 +00:00
Replace enzyme with testing-library/react
Enzyme is not compatible with react 17. Change-Id: If9bca2c482bfe10a18d2ee2bc213dab966849b5b
This commit is contained in:
parent
c8082a7198
commit
5208198b76
5 changed files with 19 additions and 320 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import React from "react";
|
||||
import { render } from "@testing-library/react";
|
||||
import { TestContext } from "ra-test";
|
||||
import { shallow } from "enzyme";
|
||||
import LoginPage from "./LoginPage";
|
||||
|
||||
describe("LoginForm", () => {
|
||||
it("renders", () => {
|
||||
shallow(
|
||||
render(
|
||||
<TestContext>
|
||||
<LoginPage />
|
||||
</TestContext>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue