Lines Matching refs:path
74 const { basename, join, resolve } = require('path');
90 function processPath(path, testFiles, options) {
91 const stats = statSync(path);
95 (options.underTestDir && isSupportedFileType(path)) ||
96 doesPathMatchFilter(path)) {
97 testFiles.add(path);
100 const name = basename(path);
110 const entries = readdirSync(path);
119 processPath(join(path, entries[i]), testFiles, options);
144 console.error(`Could not find '${err.path}'`);
159 function getRunArgs(path, { inspectPort, testNamePatterns, only }) {
170 ArrayPrototypePush(argv, path);
364 function runTestFile(path, filesWatcher, opts) {
366 const subtest = opts.root.createSubtest(FileTest, path, async (t) => {
367 const args = getRunArgs(path, opts);
380 filesWatcher.runningProcesses.set(path, child);
381 filesWatcher.watcher.watchChildProcessModules(child, path);
408 data: { __proto__: null, file: path, message: line + '\n' },
418 filesWatcher.runningProcesses.delete(path);
419 filesWatcher.runningSubtests.delete(path);
551 return SafePromiseAllSettledReturnVoid(testFiles, (path) => {
552 const subtest = runTestFile(path, filesWatcher, opts);
553 filesWatcher?.runningSubtests.set(path, subtest);