Add travis ci
This commit is contained in:
parent
ef97779a84
commit
79c87882cd
|
@ -0,0 +1,7 @@
|
|||
language: node_js
|
||||
node_js: 14
|
||||
dist: bionic
|
||||
cache: yarn
|
||||
script:
|
||||
- yarn build
|
||||
- yarn lint
|
|
@ -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/"
|
||||
},
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue