Skip to content

Commit

Permalink
fix report method
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Panchartek authored and Lukas Panchartek committed Apr 20, 2022
1 parent 87e04f4 commit 455392d
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 455392d

Please sign in to comment.