Added Jest test suite

This commit is contained in:
Zac Ioannidis
2020-12-14 13:30:49 +00:00
parent 1efd2ec15b
commit 02128ceed3
9 changed files with 48 additions and 22 deletions

16
src/test/App.test.js Normal file
View File

@@ -0,0 +1,16 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import "@testing-library/jest-dom";
import { Provider } from "react-redux";
import store from "../store/";
import App from "../components/App";
it("renders an option to view categories", () => {
render(
<Provider store={store}>
<App />
</Provider>
);
expect(screen.getByText("Categories")).toBeInTheDocument();
});