tests: Pretty-print frontendTestSpecs.js to make troubleshooting easier

This commit is contained in:
Richard Hansen 2021-04-22 13:22:42 -04:00
parent 4fa9f9e9d8
commit ed44449639

View file

@ -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/');