Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/internal/main/test_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if (isUsingInspector() && options.isolation === 'process') {
}

options.globPatterns = ArrayPrototypeSlice(process.argv, 1);
options.cwd = process.cwd();

debug('test runner configuration:', options);
run(options).on('test:summary', (data) => {
Expand Down
8 changes: 2 additions & 6 deletions lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const {
convertStringToRegExp,
countCompletedTest,
kDefaultPattern,
parseCommandLine,
} = require('internal/test_runner/utils');
const {
validateAndCanonicalizeTagFilter,
Expand Down Expand Up @@ -730,7 +729,7 @@ function run(options = kEmptyObject) {
randomSeed: suppliedRandomSeed,
execArgv = [],
argv = [],
cwd = process.cwd(),
cwd,
rerunFailuresFilePath,
env,
} = options;
Expand Down Expand Up @@ -918,10 +917,7 @@ function run(options = kEmptyObject) {
const rootTestOptions = { __proto__: null, concurrency, timeout, signal };
const globalOptions = {
__proto__: null,
// parseCommandLine() should not be used here. However, The existing run()
// behavior has relied on it, so removing it must be done in a semver major.
...parseCommandLine(),
setup, // This line can be removed when parseCommandLine() is removed here.
...options,
coverage,
coverageExcludeGlobs,
coverageIncludeGlobs,
Expand Down
Loading