Skip to content

Commit bcd63af

Browse files
committed
Fix fetch stack test on deploy
1 parent 6e73650 commit bcd63af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: test/e2e/fetch-failures-have-good-stack-traces-in-edge-runtime/fetch-failures-have-good-stack-traces-in-edge-runtime.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ createNextDescribe(
1212
'fetch failures have good stack traces in edge runtime',
1313
{
1414
files: __dirname,
15+
// don't have access to runtime logs on deploy
16+
skipDeployment: true,
1517
},
1618
({ next, isNextStart, isNextDev }) => {
1719
it('when awaiting `fetch` using an unknown domain, stack traces are preserved', async () => {
18-
const browser = await webdriver(next.appPort, '/api/unknown-domain')
20+
const browser = await webdriver(next.url, '/api/unknown-domain')
1921

2022
if (isNextStart) {
2123
expect(next.cliOutput).toMatch(/at.+\/pages\/api\/unknown-domain.js/)
@@ -34,7 +36,7 @@ createNextDescribe(
3436
})
3537

3638
it('when returning `fetch` using an unknown domain, stack traces are preserved', async () => {
37-
await webdriver(next.appPort, '/api/unknown-domain-no-await')
39+
await webdriver(next.url, '/api/unknown-domain-no-await')
3840
await check(
3941
() => stripAnsi(next.cliOutput),
4042
/at.+\/pages\/api\/unknown-domain-no-await.js/

0 commit comments

Comments
 (0)