Skip to content

Commit

Permalink
test: test server stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Dec 8, 2024
1 parent f1a59bf commit d8253f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playground/rolldown-dev-ssr/__tests__/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ test('basic', async () => {
expect(await res.text()).toContain('hydrated: <!-- -->false')
})

test.runIf(!isBuild)('server stacktrace', async () => {
const res = await page.goto(viteTestUrl + '/crash-ssr')
expect(await res?.text()).toContain('src/error.ts:8:9')
expect(res?.status()).toBe(500)
})

test.runIf(!isBuild)('hmr', async () => {
await page.goto(viteTestUrl)
await page.getByRole('button', { name: 'Count: 0' }).click()
Expand Down

0 comments on commit d8253f1

Please sign in to comment.