-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_runner: expose reporter for use in run api
PR-URL: #47238 Fixes: #47231 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
- Loading branch information
1 parent
7e24498
commit bd4697a
Showing
3 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, { | ||
__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; | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters