diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..39e42b4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: 14 +dist: bionic +cache: yarn +script: + - yarn build + - yarn lint diff --git a/package.json b/package.json index 123e052..4409d61 100644 --- a/package.json +++ b/package.json @@ -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/" }, diff --git a/src/App.test.tsx b/src/App.test.tsx index d76787e..9ab171e 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -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(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); });