Skip to content

Commit

Permalink
add sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
nomnomnonono committed Feb 29, 2024
1 parent 46b51f8 commit d80084b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
coverage

# Editor directories and files
.vscode/*
Expand Down
10 changes: 10 additions & 0 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { render, screen } from "@testing-library/react";
import { expect, test } from "vitest";

import App from "./App";

test("renders learn react link", () => {
render(<App />);
const linkElement = screen.getByText("Vite + React");
expect(linkElement).toBeInTheDocument();
});

0 comments on commit d80084b

Please sign in to comment.