From fdde81bf19d564f1f27a9a89893a454e46f735a7 Mon Sep 17 00:00:00 2001 From: lalugeo Date: Thu, 10 Jan 2019 16:28:34 +0100 Subject: [PATCH] * fix bug in xml prolog --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 16e1990..57adcd9 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ const processor = (report, reporterOptions = {}, jestRootDir = null) => { mkdirp.sync(path.dirname(finalOutput)); // Write data to file - fs.writeFileSync(finalOutput,(constants.XML_PROLOG === 'true')? constants.XML_PROLOG_STRING : '' + xml(jsonResults, { indent: ' ' })); + fs.writeFileSync(finalOutput,((options.includeXmlProlog === 'true')? constants.XML_PROLOG_STRING : '') + xml(jsonResults, { indent: ' ' })); // Jest 18 compatibility return report;