Skip to content

Commit

Permalink
Merge pull request #1 from lukasPan/fix-report
Browse files Browse the repository at this point in the history
fix report method
  • Loading branch information
lukasPan authored Apr 20, 2022
2 parents 87e04f4 + 455392d commit bafb9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jest-reporter-simple-dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class JestReporterSimplePostData {
* @param {JestTestRunResult} - Results from the test run
*/
onRunComplete(test, runResults) {
this.report(runResults);
return this.report(runResults);
}

report(data) {
fetch(this._options.url, {
return fetch(this._options.url, {
method: 'POST',
body: JSON.stringify(data),
headers: {
Expand Down

0 comments on commit bafb9df

Please sign in to comment.