1
0
Fork 0

refactor: move to monorepo

This commit is contained in:
Vojtěch Mareš 2023-10-04 18:13:04 +02:00
parent f81e3e1dd6
commit d891426a12
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
88 changed files with 403 additions and 160 deletions

View file

@ -0,0 +1,19 @@
import { expect, test } from "vitest";
import { render, screen, cleanup } from "@testing-library/react";
import { Button } from "@/components/Button";
test("button", () => {
render(<Button>Hello</Button>);
expect(screen.getByText("Hello")).toBeDefined();
cleanup();
});
test("button-with-link", () => {
render(<Button href="/country-road">Hello</Button>);
expect(screen.getByText("Hello").getAttribute("href")).toBe("/country-road");
cleanup();
});