Skip to content

Commit fdde81b

Browse files
author
lalugeo
committed
* fix bug in xml prolog
1 parent 6653fb8 commit fdde81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const processor = (report, reporterOptions = {}, jestRootDir = null) => {
2626
mkdirp.sync(path.dirname(finalOutput));
2727

2828
// Write data to file
29-
fs.writeFileSync(finalOutput,(constants.XML_PROLOG === 'true')? constants.XML_PROLOG_STRING : '' + xml(jsonResults, { indent: ' ' }));
29+
fs.writeFileSync(finalOutput,((options.includeXmlProlog === 'true')? constants.XML_PROLOG_STRING : '') + xml(jsonResults, { indent: ' ' }));
3030

3131
// Jest 18 compatibility
3232
return report;

0 commit comments

Comments
 (0)