// 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()`
awaitnext.patchFile('index.js',"throw new Error('module error')")
awaitnext.patchFile('index.js',"throw new Error('module error')")
if(isTurbopack){
if(isTurbopack){
awaitexpect(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()`