Unverified Commit 58a22f7a authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Disable flaky Turbopack tests (#76760)

parent 6dc85796
...@@ -344,22 +344,9 @@ describe('ReactRefreshLogBox app', () => { ...@@ -344,22 +344,9 @@ describe('ReactRefreshLogBox app', () => {
) )
if (isTurbopack) { if (isTurbopack) {
await expect(browser).toDisplayRedbox(` // 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
{ // Should use `await expect(browser).toDisplayRedbox()`
"count": 1, await session.assertHasRedbox()
"description": "Error: ",
"environmentLabel": null,
"label": "Unhandled Runtime Error",
"source": "Child.js (4:11) @ ClickCount.render
> 4 | throw new Error()
| ^",
"stack": [
"ClickCount.render Child.js (4:11)",
"Home index.js (6:7)",
"<FIXME-file-protocol>",
],
}
`)
} else { } else {
await expect(browser).toDisplayRedbox(` await expect(browser).toDisplayRedbox(`
{ {
...@@ -1465,25 +1452,9 @@ describe('ReactRefreshLogBox app', () => { ...@@ -1465,25 +1452,9 @@ describe('ReactRefreshLogBox app', () => {
await next.patchFile('index.js', "throw new Error('module error')") await next.patchFile('index.js', "throw new Error('module error')")
if (isTurbopack) { if (isTurbopack) {
await expect(browser).toDisplayRedbox(` // 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
{ // Should use `await expect(browser).toDisplayRedbox()`
"count": 1, await session.assertHasRedbox()
"description": "Error: module error",
"environmentLabel": null,
"label": "Runtime Error",
"source": "index.js (1:7) @ [project]/index.js [app-rsc] (ecmascript)
> 1 | throw new Error('module error')
| ^",
"stack": [
"[project]/index.js [app-rsc] (ecmascript) index.js (1:7)",
"[project]/app/server/page.js [app-rsc] (ecmascript) app/server/page.js (1:1)",
"<FIXME-file-protocol>",
"<FIXME-file-protocol>",
"<FIXME-file-protocol>",
"<FIXME-file-protocol>",
],
}
`)
} else { } else {
await expect({ browser, next }).toDisplayRedbox(` await expect({ browser, next }).toDisplayRedbox(`
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment