remove tests

master
Tudor Stanciu 2020-12-19 01:53:43 +02:00
parent 91f6e04a9a
commit e94195aa69
5 changed files with 3 additions and 36 deletions

View File

@ -1,8 +0,0 @@
import { render, screen } from "@testing-library/react";
import App from "./App";
test("renders learn react link", () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});

View File

@ -1,5 +1,4 @@
import SettingsIcon from "@material-ui/icons/Settings";
import GroupAddIcon from "@material-ui/icons/GroupAdd";
import { GroupAdd, VpnKey } from "@material-ui/icons";
const steps = [
{
@ -7,14 +6,14 @@ const steps = [
title: "Login",
route: "/",
disabled: false,
icon: <SettingsIcon />
icon: <VpnKey />
},
{
id: 1,
title: "About",
route: "/about",
disabled: false,
icon: <GroupAddIcon />
icon: <GroupAdd />
}
];

View File

@ -2,7 +2,6 @@ import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter as Router } from "react-router-dom";
ReactDOM.render(
@ -13,8 +12,3 @@ ReactDOM.render(
</React.StrictMode>,
document.getElementById("root")
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

View File

@ -1,13 +0,0 @@
const reportWebVitals = (onPerfEntry) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

View File

@ -1,5 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import "@testing-library/jest-dom";