test: scaffold component testing with Vitest

This commit is contained in:
Eric Liu 2024-11-23 10:53:14 -08:00
commit bb20daa384
9 changed files with 2324 additions and 39 deletions

6
tests/setup-tests.ts Normal file
View file

@ -0,0 +1,6 @@
/// <reference types="vitest/globals" />
import "@testing-library/jest-dom/vitest";
import { userEvent } from "@testing-library/user-event";
import "../css/all.css";
export const user = userEvent.setup();