Commit 14d61788 authored by Chunchi Che's avatar Chunchi Che

add gitlab-ci and remove unused test and update .gitignore

parent db167f92
Pipeline #17189 passed with stage
in 2 minutes
......@@ -10,6 +10,7 @@
# production
/build
/builds
# misc
.DS_Store
......
stages:
- build
- test
- deploy
variables:
GIT_DEPTH: "1"
npm_build:
stage: build
tags:
- linux
script:
- npm ci
- npm run build
# npm_test:
# stage: test
# tags:
# - linux
# script: npm run test
# dependencies:
# - npm_build
import React from "react";
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();
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment