Skip to content

Commit 010be8d

Browse files
author
lalugeo
committed
removed options, hardcoded prolog
1 parent fdde81b commit 010be8d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

constants/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = {
1313
JEST_JUNIT_TITLE: 'titleTemplate',
1414
JEST_JUNIT_ANCESTOR_SEPARATOR: 'ancestorSeparator',
1515
JEST_USE_PATH_FOR_SUITE_NAME: 'usePathForSuiteName',
16-
JEST_JUNIT_INCLUDE_XML_PROLOG:'includeXmlProlog',
1716
},
1817
DEFAULT_OPTIONS: {
1918
suiteName: 'jest tests',
@@ -25,7 +24,6 @@ module.exports = {
2524
titleTemplate: '{classname} {title}',
2625
ancestorSeparator: ' ',
2726
usePathForSuiteName: 'false',
28-
includeXmlProlog: 'false',
2927
},
3028
CLASSNAME_VAR: 'classname',
3129
FILENAME_VAR: 'filename',

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,((options.includeXmlProlog === 'true')? constants.XML_PROLOG_STRING : '') + xml(jsonResults, { indent: ' ' }));
29+
fs.writeFileSync(finalOutput, constants.XML_PROLOG_STRING + xml(jsonResults, { indent: ' ' }));
3030

3131
// Jest 18 compatibility
3232
return report;

0 commit comments

Comments
 (0)