Skip to content

Commit 58a22f7

Browse files
authored
Disable flaky Turbopack tests (#76760)
1 parent 6dc8579 commit 58a22f7

File tree

1 file changed

+6
-35
lines changed

1 file changed

+6
-35
lines changed

test/development/acceptance-app/ReactRefreshLogBox.test.ts

+6-35
Original file line numberDiff line numberDiff line change
@@ -344,22 +344,9 @@ describe('ReactRefreshLogBox app', () => {
344344
)
345345

346346
if (isTurbopack) {
347-
await expect(browser).toDisplayRedbox(`
348-
{
349-
"count": 1,
350-
"description": "Error: ",
351-
"environmentLabel": null,
352-
"label": "Unhandled Runtime Error",
353-
"source": "Child.js (4:11) @ ClickCount.render
354-
> 4 | throw new Error()
355-
| ^",
356-
"stack": [
357-
"ClickCount.render Child.js (4:11)",
358-
"Home index.js (6:7)",
359-
"<FIXME-file-protocol>",
360-
],
361-
}
362-
`)
347+
// TODO(veil): Turbopack is flaky. Possibly related to https://linear.app/vercel/issue/NDX-920/turbopack-errors-after-hmr-have-no-stacktraces-in-affected-chunks
348+
// Should use `await expect(browser).toDisplayRedbox()`
349+
await session.assertHasRedbox()
363350
} else {
364351
await expect(browser).toDisplayRedbox(`
365352
{
@@ -1465,25 +1452,9 @@ describe('ReactRefreshLogBox app', () => {
14651452
await next.patchFile('index.js', "throw new Error('module error')")
14661453

14671454
if (isTurbopack) {
1468-
await expect(browser).toDisplayRedbox(`
1469-
{
1470-
"count": 1,
1471-
"description": "Error: module error",
1472-
"environmentLabel": null,
1473-
"label": "Runtime Error",
1474-
"source": "index.js (1:7) @ [project]/index.js [app-rsc] (ecmascript)
1475-
> 1 | throw new Error('module error')
1476-
| ^",
1477-
"stack": [
1478-
"[project]/index.js [app-rsc] (ecmascript) index.js (1:7)",
1479-
"[project]/app/server/page.js [app-rsc] (ecmascript) app/server/page.js (1:1)",
1480-
"<FIXME-file-protocol>",
1481-
"<FIXME-file-protocol>",
1482-
"<FIXME-file-protocol>",
1483-
"<FIXME-file-protocol>",
1484-
],
1485-
}
1486-
`)
1455+
// TODO(veil): Turbopack is flaky. Possibly related to https://linear.app/vercel/issue/NDX-920/turbopack-errors-after-hmr-have-no-stacktraces-in-affected-chunks
1456+
// Should use `await expect(browser).toDisplayRedbox()`
1457+
await session.assertHasRedbox()
14871458
} else {
14881459
await expect({ browser, next }).toDisplayRedbox(`
14891460
{

0 commit comments

Comments
 (0)