Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
atlowChemi committed Apr 14, 2024
commit 8c31349199838b3ee095acd99a3ffd5feb04b796
2 changes: 1 addition & 1 deletion lib/test/reporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ObjectDefineProperties(module.exports, {
__proto__: null,
configurable: true,
enumerable: true,
get() {
value: function value() {
lcov ??= require('internal/test_runner/reporter/lcov');
return ReflectConstruct(lcov, arguments);
},
Expand Down