Skip to content

Commit c57752f

Browse files
committed
ref: do a separate function to make tsgo happy
1 parent 1badd6a commit c57752f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/js/test-balancer/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const path = require('node:path');
1010
* @param {Array<{testFilePath: string, perfStats: {runtime: number}}>} results.testResults - Array of test result objects
1111
* @returns {Object} The original results object
1212
*/
13-
module.exports = results => {
13+
function writeReport(results) {
1414
if (!results.success) {
1515
throw new Error('Balance reporter requires all tests to succeed.');
1616
}
@@ -29,4 +29,6 @@ module.exports = results => {
2929
);
3030

3131
return results;
32-
};
32+
}
33+
34+
module.exports = writeReport;

0 commit comments

Comments
 (0)