Skip to content

Commit

Permalink
chore(creator): break writeFile to multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
James Singleton committed May 22, 2020
1 parent e421ff1 commit 008ecd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jest-preset.json
# misc
.DS_Store
npm-debug.log

# build
*.tgz

# webstorm
.idea
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
node_js:
- 10
- 12
- 14
before_install:
# Create a master branch for commitlint
# https://github.com/conventional-changelog/commitlint/issues/6
Expand All @@ -16,4 +17,4 @@ jobs:
provider: script
skip_cleanup: true
script:
- npx semantic-release
- npx semantic-release
15 changes: 9 additions & 6 deletions html-report-creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,15 @@ module.exports = (result) => {
});
}
});
writeFile(process.env.JEST_TEST_REPORT_PATH || path.join(process.cwd(), 'test-results/test-report.html'), htmlOutput.end({
pretty: true,
indent: ' ',
newline: '\n',
allowEmpty: false,
}));
writeFile(
process.env.JEST_TEST_REPORT_PATH || path.join(process.cwd(), 'test-results/test-report.html'),
htmlOutput.end({
pretty: true,
indent: ' ',
newline: '\n',
allowEmpty: false,
})
);

return result;
};

0 comments on commit 008ecd9

Please sign in to comment.