mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 20:29:23 +01:00
a596af0819
PR-URL: https://github.com/nodejs/node/pull/52592 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
62 lines
1.2 KiB
JavaScript
62 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
const {
|
|
ObjectDefineProperties,
|
|
ReflectConstruct,
|
|
} = primordials;
|
|
|
|
let dot;
|
|
let junit;
|
|
let spec;
|
|
let tap;
|
|
let lcov;
|
|
|
|
ObjectDefineProperties(module.exports, {
|
|
__proto__: null,
|
|
dot: {
|
|
__proto__: null,
|
|
configurable: true,
|
|
enumerable: true,
|
|
get() {
|
|
dot ??= require('internal/test_runner/reporter/dot');
|
|
return dot;
|
|
},
|
|
},
|
|
junit: {
|
|
__proto__: null,
|
|
configurable: true,
|
|
enumerable: true,
|
|
get() {
|
|
junit ??= require('internal/test_runner/reporter/junit');
|
|
return junit;
|
|
},
|
|
},
|
|
spec: {
|
|
__proto__: null,
|
|
configurable: true,
|
|
enumerable: true,
|
|
value: function value() {
|
|
spec ??= require('internal/test_runner/reporter/spec');
|
|
return ReflectConstruct(spec, arguments);
|
|
},
|
|
},
|
|
tap: {
|
|
__proto__: null,
|
|
configurable: true,
|
|
enumerable: true,
|
|
get() {
|
|
tap ??= require('internal/test_runner/reporter/tap');
|
|
return tap;
|
|
},
|
|
},
|
|
lcov: {
|
|
__proto__: null,
|
|
configurable: true,
|
|
enumerable: true,
|
|
value: function value() {
|
|
lcov ??= require('internal/test_runner/reporter/lcov');
|
|
return ReflectConstruct(lcov, arguments);
|
|
},
|
|
},
|
|
});
|