Version
v20.12.1
Platform
Microsoft Windows NT 10.0.26040.0 x64
Subsystem
No response
What steps will reproduce the bug?
import{lcov}from'node:test/reporters'constreporter=lcov()How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
lcov is a function which creates a new reporter, like all other exports in node:test/reporters (spec, dot, junit and tap)
What do you see instead?
lcov is an instance of LcovReporter class.
I think it's a typo at
| lcov: { |
| __proto__: null, |
| configurable: true, |
| enumerable: true, |
| get(){ |
| lcov??=require('internal/test_runner/reporter/lcov'); |
| returnReflectConstruct(lcov,arguments); |
| }, |
| }, |
It should be defined as value, same as spec:
| spec: { |
| __proto__: null, |
| configurable: true, |
| enumerable: true, |
| value: functionvalue(){ |
| spec??=require('internal/test_runner/reporter/spec'); |
| returnReflectConstruct(spec,arguments); |
| }, |
| }, |
Additional information
No response
Version
v20.12.1
Platform
Microsoft Windows NT 10.0.26040.0 x64
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
lcovis a function which creates a new reporter, like all other exports innode:test/reporters(spec,dot,junitandtap)What do you see instead?
lcovis an instance ofLcovReporterclass.I think it's a typo at
node/lib/test/reporters.js
Lines 49 to 57 in 3f5ff8d
It should be defined as
value, same asspec:node/lib/test/reporters.js
Lines 31 to 39 in 3f5ff8d
Additional information
No response