feat: initial commit
This commit is contained in:
2
src/routes/+page.svelte
Normal file
2
src/routes/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://svelte.dev/docs/kit">svelte.dev/docs/kit</a> to read the documentation</p>
|
||||
11
src/routes/page.svelte.test.ts
Normal file
11
src/routes/page.svelte.test.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { describe, test, expect } from "vitest";
|
||||
import "@testing-library/jest-dom/vitest";
|
||||
import { render, screen } from "@testing-library/svelte";
|
||||
import Page from "./+page.svelte";
|
||||
|
||||
describe("/+page.svelte", () => {
|
||||
test("should render h1", () => {
|
||||
render(Page);
|
||||
expect(screen.getByRole("heading", { level: 1 })).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user