Skip to content

Commit 8c31349

Browse files
committed
test_runner: expose lcov reporter as newable function
This commit exposes the lcov reporter as a newable function, so that it can be used in the same way as the other reporters. This will allow passing in the options to the reporter as well. This breaks the current behavior of the lcov reporter, which exposes an instance of the reporter. Fixes: #52385 Ref: #49184
1 parent 756acd0 commit 8c31349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test/reporters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ObjectDefineProperties(module.exports, {
5050
__proto__: null,
5151
configurable: true,
5252
enumerable: true,
53-
get() {
53+
value: function value() {
5454
lcov ??= require('internal/test_runner/reporter/lcov');
5555
return ReflectConstruct(lcov, arguments);
5656
},

0 commit comments

Comments
 (0)