Skip to content

Commit 76b8231

Browse files
authored
fix(nextjs): Show full stacktraces in integration tests (#4125)
By default, Node only displays the top 10 frames in an error's stacktrace. Especially with async code (which, when down-compiled, introduces lots of frames just with its async-i-ness), this means you can be missing a lot of frames. This removes that cap for our integration tests, so we can see the full stacktrace when debugging.
1 parent fda8f2d commit 76b8231

File tree

1 file changed

+2
-0
lines changed
  • packages/nextjs/test/integration/test/utils

1 file changed

+2
-0
lines changed

packages/nextjs/test/integration/test/utils/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const { get } = require('http');
22
const nock = require('nock');
33
const { logIf, parseEnvelope } = require('./common');
44

5+
Error.stackTraceLimit = Infinity;
6+
57
const getAsync = url => {
68
return new Promise((resolve, reject) => {
79
get(url, res => {

0 commit comments

Comments
 (0)