Skip to content

Commit

Permalink
removed options, hardcoded prolog
Browse files Browse the repository at this point in the history
  • Loading branch information
lalugeo committed Jan 10, 2019
1 parent fdde81b commit 010be8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
JEST_JUNIT_TITLE: 'titleTemplate',
JEST_JUNIT_ANCESTOR_SEPARATOR: 'ancestorSeparator',
JEST_USE_PATH_FOR_SUITE_NAME: 'usePathForSuiteName',
JEST_JUNIT_INCLUDE_XML_PROLOG:'includeXmlProlog',
},
DEFAULT_OPTIONS: {
suiteName: 'jest tests',
Expand All @@ -25,7 +24,6 @@ module.exports = {
titleTemplate: '{classname} {title}',
ancestorSeparator: ' ',
usePathForSuiteName: 'false',
includeXmlProlog: 'false',
},
CLASSNAME_VAR: 'classname',
FILENAME_VAR: 'filename',
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const processor = (report, reporterOptions = {}, jestRootDir = null) => {
mkdirp.sync(path.dirname(finalOutput));

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

// Jest 18 compatibility
return report;
Expand Down

0 comments on commit 010be8d

Please sign in to comment.