diff --git a/src/components/SignUpForm/SignUpForm.test.jsx b/src/components/SignUpForm/SignUpForm.test.jsx new file mode 100644 index 0000000..d08d480 --- /dev/null +++ b/src/components/SignUpForm/SignUpForm.test.jsx @@ -0,0 +1,15 @@ +import React from "react"; +import { BrowserRouter } from 'react-router-dom'; +import {render, cleanup, screen, fireEvent, waitFor} from "@testing-library/react" +jest.mock("../Contexts/UserContext"); +import { useUserContext, UserProvider } from "../Contexts/UserContext"; +import SignUpForm from './index'; + +describe("Sign Up Form", () => { + + it("Should render", () => { + const { container } = render(); + expect(container).toMatchSnapshot(); + cleanup(); + }) +}) \ No newline at end of file diff --git a/src/components/SignUpForm/__snapshots__/SignUpForm.test.jsx.snap b/src/components/SignUpForm/__snapshots__/SignUpForm.test.jsx.snap new file mode 100644 index 0000000..1e1b0d8 --- /dev/null +++ b/src/components/SignUpForm/__snapshots__/SignUpForm.test.jsx.snap @@ -0,0 +1,189 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Sign Up Form Should render 1`] = ` +
+
+
+

+ Sign up +

+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+ + +
+
+
+
+`;