Skip to content

Commit 703fdb5

Browse files
committed
test: test error position
1 parent f46c5bd commit 703fdb5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/plugin-rsc/e2e/syntax-error.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ test.describe(() => {
152152
),
153153
)
154154
await page.goto(f.url())
155-
await expect(page.locator('body')).toContainText(
156-
'Transform failed with 1 error',
157-
)
155+
await expect(page.locator('body')).toContainText('src/client.tsx:15')
158156

159157
// fix syntax error
160158
await page.waitForTimeout(200)
@@ -187,9 +185,7 @@ test.describe(() => {
187185
),
188186
)
189187
await page.goto(f.url())
190-
await expect(page.locator('body')).toContainText(
191-
'Transform failed with 1 error',
192-
)
188+
await expect(page.locator('body')).toContainText('src/root.tsx:11')
193189

194190
// fix syntax error
195191
await page.waitForTimeout(200)

0 commit comments

Comments
 (0)