Add more testing stuff

This commit is contained in:
Schluffe
2026-09-26 14:12:35 +02:00
parent cb6946c9c7
commit e47df08232
13 changed files with 333 additions and 125 deletions
+8
View File
@@ -0,0 +1,8 @@
import { render } from "@solidjs/testing-library";
import { expect, test } from "vitest";
import HelloWorld from "./HelloWorld.tsx";
test("renders name", async () => {
const { getByText } = await render(<HelloWorld name="Vitest" />);
await expect.element(getByText("Hello Vitest!")).toBeInTheDocument();
});
+6
View File
@@ -0,0 +1,6 @@
import "#/styles.css";
export default function HelloWorld({ name }: { name: string }) {
import("#/main.ts");
return <></>;
}