Skip to content

Commit 6605420

Browse files
committed
use console.dir instead of inspect
1 parent 085b15b commit 6605420

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const { createServer } = require('http');
22
const { parse } = require('url');
33
const { stat } = require('fs').promises;
44
const next = require('next');
5-
const { inspect } = require('util');
65

76
const createNextServer = async config => {
87
const app = next(config);
@@ -38,7 +37,7 @@ const logIf = (condition, message, input, depth = 4) => {
3837
if (condition) {
3938
console.log(message);
4039
if (input) {
41-
console.log(inspect(input, { depth }));
40+
console.dir(input, { depth, colors: true });
4241
}
4342
}
4443
};

0 commit comments

Comments
 (0)