-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
test_runner: expose reporter for use in run api #47238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3db2b52
0e16ae4
7d1ba82
16edd36
6f8b4ae
58a5989
b123070
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,38 @@ | ||||||||||||
'use strict'; | ||||||||||||
|
||||||||||||
const { ObjectDefineProperties } = primordials; | ||||||||||||
|
||||||||||||
let dot; | ||||||||||||
let spec; | ||||||||||||
let tap; | ||||||||||||
|
||||||||||||
ObjectDefineProperties(module.exports, { | ||||||||||||
atlowChemi marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are we sure that cjs-module-lexer will be able to pick up this pattern as named exports? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is a pretty common pattern in node's built-in modules, so it probably does: Line 340 in 9dbb162
Line 1392 in 9dbb162
Line 345 in 9dbb162
Line 399 in 9dbb162
Line 926 in 9dbb162
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It probably doesn’t but we don’t use |
||||||||||||
__proto__: null, | ||||||||||||
dot: { | ||||||||||||
__proto__: null, | ||||||||||||
configurable: true, | ||||||||||||
enumerable: true, | ||||||||||||
get() { | ||||||||||||
dot ??= require('internal/test_runner/reporter/dot'); | ||||||||||||
return dot; | ||||||||||||
}, | ||||||||||||
}, | ||||||||||||
spec: { | ||||||||||||
__proto__: null, | ||||||||||||
configurable: true, | ||||||||||||
enumerable: true, | ||||||||||||
get() { | ||||||||||||
spec ??= require('internal/test_runner/reporter/spec'); | ||||||||||||
return spec; | ||||||||||||
}, | ||||||||||||
}, | ||||||||||||
tap: { | ||||||||||||
__proto__: null, | ||||||||||||
configurable: true, | ||||||||||||
enumerable: true, | ||||||||||||
get() { | ||||||||||||
tap ??= require('internal/test_runner/reporter/tap'); | ||||||||||||
return tap; | ||||||||||||
}, | ||||||||||||
}, | ||||||||||||
}); |
Uh oh!
There was an error while loading. Please reload this page.