From ed444496396ebbacb42c73b30965ba5ea28120f4 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 22 Apr 2021 13:22:42 -0400 Subject: [PATCH] tests: Pretty-print `frontendTestSpecs.js` to make troubleshooting easier --- src/node/hooks/express/tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 59bd4cdc6..b26c09b39 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -26,7 +26,7 @@ exports.expressCreateServer = (hookName, args, cb) => { console.debug('Sent browser the following test specs:', files); res.setHeader('content-type', 'application/javascript'); - res.end(`window.frontendTestSpecs = ${JSON.stringify(files)};\n`); + res.end(`window.frontendTestSpecs = ${JSON.stringify(files, null, 2)};\n`); }); const rootTestFolder = path.join(settings.root, 'src/tests/frontend/');