MCPcopy Index your code
hub / github.com/nodejs/node / refreshForTestRunnerWatch

Function refreshForTestRunnerWatch

test/common/watch.js:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36const fixtureContent = {};
37
38function refreshForTestRunnerWatch() {
39 tmpdir.refresh();
40 const files = readdirSync(fixtures.path('test-runner-watch'));
41 for (const file of files) {
42 const src = fixtures.path('test-runner-watch', file);
43 const dest = tmpdir.resolve(file);
44 fixturePaths[file] = dest;
45 fixtureContent[file] = readFileSync(src, 'utf8');
46 writeFileSync(dest, fixtureContent[file]);
47 }
48}
49
50async function performFileOperation(operation, useRunApi, timeout = 1000) {
51 if (useRunApi) {

Calls 6

writeFileSyncFunction · 0.85
readdirSyncFunction · 0.50
readFileSyncFunction · 0.50
refreshMethod · 0.45
pathMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…