silverwolf-x's picture
download
raw
909 Bytes
import { nextTestSetup } from 'e2e-utils'
describe('app dir - dynamic error trace', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
})
if (skipped) return
it('should show the error trace', async () => {
const browser = await next.browser('/')
// TODO(veil): Where is the stackframe for app/page.js?
await expect(browser).toDisplayRedbox(`
{
"code": "E828",
"description": "Route / with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering",
"environmentLabel": "Server",
"label": "Runtime Error",
"source": "app/lib.js (4:13) @ Foo
> 4 | useHeaders()
| ^",
"stack": [
"Foo app/lib.js (4:13)",
],
}
`)
})
})

Xet Storage Details

Size:
909 Bytes
·
Xet hash:
73a4001e2ea992fda0be92d99e75c3195c2a6095e30b8ec85021bcae281c910b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.