Add more testing stuff
This commit is contained in:
1 parent
cb6946c9c7
commit
e47df08232
13 files changed
+333
-125
No files matched your search
@@ -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();
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
import "#/styles.css";
|
||||
|
||||
export default function HelloWorld({ name }: { name: string }) {
|
||||
import("#/main.ts");
|
||||
return <></>;
|
||||
}
|
||||
Reference in new issue
Block a user