-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the logic for handling --test-reporter out of the general module loader and into the test_runner subsystem. PR-URL: nodejs/node#45923 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> (cherry picked from commit 12c0571c8fece32d274eaf0ae197c0eb1948fe11)
- Loading branch information
1 parent
1ec1348
commit a5e0e9e
Showing
4 changed files
with
21 additions
and
8 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
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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
// https://github.com/nodejs/node/blob/1aab13cad9c800f4121c1d35b554b78c1b17bdbd/test/common/fixtures.js | ||
// https://github.com/nodejs/node/blob/12c0571c8fece32d274eaf0ae197c0eb1948fe11/test/common/fixtures.js | ||
'use strict' | ||
|
||
const path = require('path') | ||
const { pathToFileURL } = require('url') | ||
|
||
const fixturesDir = path.join(__dirname, '..', 'fixtures') | ||
|
||
function fixturesPath (...args) { | ||
return path.join(fixturesDir, ...args) | ||
} | ||
function fixturesFileURL (...args) { | ||
return pathToFileURL(fixturesPath(...args)) | ||
} | ||
|
||
module.exports = { | ||
path: fixturesPath | ||
path: fixturesPath, | ||
fileURL: fixturesFileURL | ||
} |
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