From a0afd97363533b5c53583a62bb7dad985c7eadfc Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Wed, 6 Feb 2019 10:42:54 -0800 Subject: [PATCH] fix integration helper json failure output --- test/integration/helpers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/helpers.js b/test/integration/helpers.js index b2e98434c7..bba6f1ff5c 100644 --- a/test/integration/helpers.js +++ b/test/integration/helpers.js @@ -81,10 +81,10 @@ module.exports = { var path; path = resolveFixturePath(fixturePath); - args = args || []; + args = (args || []).concat('--reporter', 'json', path); return invokeMocha( - args.concat(['--reporter', 'json', path]), + args, function(err, res) { if (err) return fn(err); @@ -95,8 +95,8 @@ module.exports = { fn( new Error( format( - 'Failed to parse JSON reporter output.\nArgs: %O\nResult:\n\n%O', - args, + 'Failed to parse JSON reporter output. Error:\n%O\nResponse:\n%O', + err, res ) )