test: update test to not use createRawSnippet, use test component instead

This commit is contained in:
2026-02-08 20:38:06 +05:00
parent 0f905bbc20
commit e838916d91
6 changed files with 40 additions and 25 deletions
+11
View File
@@ -0,0 +1,11 @@
import { render, screen } from "@testing-library/svelte";
import { describe, expect, it } from "vitest";
import PageTest from "./PageTest.svelte";
describe("+page.svelte", () => {
it("should render without crashing", () => {
render(PageTest);
const mainGrid = document.querySelector(".main-grid");
expect(mainGrid).toBeInTheDocument();
});
});