Add travis ci

This commit is contained in:
armaniferrante 2021-05-15 16:33:45 -07:00
parent ef97779a84
commit 79c87882cd
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
3 changed files with 9 additions and 3 deletions

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
language: node_js
node_js: 14
dist: bionic
cache: yarn
script:
- yarn build
- yarn lint

View File

@ -36,6 +36,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "prettier src/** --check",
"lint:fix": "prettier src/** -w",
"deploy": "gh-pages -d build/"
},

View File

@ -1,9 +1,7 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import { render } 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();
});