Lines Matching full:path
4 import path from 'node:path';
26 function createTmpFile(content = 'console.log("running");', ext = '.js', basename = tmpdir.path) {
27 const file = path.join(basename, `${tmpFiles++}${ext}`);
117 it('should watch changes to a file with watch-path', {
120 const dir = path.join(tmpdir.path, 'subdir1');
124 const args = ['--watch-path', dir, file];
138 it('should watch when running an non-existing file - when specified under --watch-path', {
141 const dir = path.join(tmpdir.path, 'subdir2');
143 const file = path.join(dir, 'non-existing.js');
145 const args = ['--watch-path', dir, file];
156 it('should watch when running an non-existing file - when specified under --watch-path with equals', {
159 const dir = path.join(tmpdir.path, 'subdir3');
161 const file = path.join(dir, 'non-existing.js');
163 const args = [`--watch-path=${dir}`, file];
300 const nonExistingfile = path.join(tmpdir.path, `${tmpFiles++}.js`);
307 const nonExistingfile = path.join(tmpdir.path, `${tmpFiles++}.mjs`);
314 const dependency = path.join(tmpdir.path, `${tmpFiles++}.js`);
315 const relativeDependencyPath = `./${path.basename(dependency)}`;
325 const dependency = path.join(tmpdir.path, relativeDependencyPath);