Skip to content

Commit

Permalink
Merge pull request #72 from lalugeo/master
Browse files Browse the repository at this point in the history
Add XML prolog to junit output
  • Loading branch information
palmerj3 authored Jan 24, 2019
2 parents 3da1128 + 3a82918 commit 860f7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ module.exports = {
FILEPATH_VAR: 'filepath',
TITLE_VAR: 'title',
DISPLAY_NAME_VAR: 'displayName',
};
};
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const processor = (report, reporterOptions = {}, jestRootDir = null) => {
mkdirp.sync(path.dirname(finalOutput));

// Write data to file
fs.writeFileSync(finalOutput, xml(jsonResults, { indent: ' ' }));
fs.writeFileSync(finalOutput, xml(jsonResults, { indent: ' ', declaration: true }));

// Jest 18 compatibility
return report;
Expand Down Expand Up @@ -70,4 +70,3 @@ function JestJUnit (globalConfig, options) {
}

module.exports = JestJUnit;

0 comments on commit 860f7ef

Please sign in to comment.