We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1badd6a commit c57752fCopy full SHA for c57752f
tests/js/test-balancer/index.js
@@ -10,7 +10,7 @@ const path = require('node:path');
10
* @param {Array<{testFilePath: string, perfStats: {runtime: number}}>} results.testResults - Array of test result objects
11
* @returns {Object} The original results object
12
*/
13
-module.exports = results => {
+function writeReport(results) {
14
if (!results.success) {
15
throw new Error('Balance reporter requires all tests to succeed.');
16
}
@@ -29,4 +29,6 @@ module.exports = results => {
29
);
30
31
return results;
32
-};
+}
33
+
34
+module.exports = writeReport;
0 commit comments