Skip to content

Commit

Permalink
test: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 29, 2024
1 parent f634a65 commit 8662457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions viteroll/examples/ssr/e2e/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ test("hmr", async ({ page, request }) => {
const res = await request.get("/");
expect(await res.text()).toContain("Count-EDIT-EDIT");
});

test("server stacktrace", async ({ page }) => {
const res = await page.goto("/crash-ssr");
expect(await res?.text()).toContain("examples/ssr/src/error.tsx:8:8");
expect(res?.status()).toBe(500);
});

0 comments on commit 8662457

Please sign in to comment.