15 lines
513 B
JavaScript
15 lines
513 B
JavaScript
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 SignInForm from './index';
|
|
|
|
describe("Sign In Form", () => {
|
|
|
|
it("Should render", () => {
|
|
const { container } = render(<BrowserRouter><SignInForm /></BrowserRouter>);
|
|
expect(container).toMatchSnapshot();
|
|
cleanup();
|
|
})
|
|
}) |