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

Function testUpdate

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

Source from the content-addressed store, hash-verified

112 });
113
114 const testUpdate = async () => {
115 await ran1.promise;
116 runs.push(currentRun);
117 currentRun = '';
118 const content = fixtureContent[fileToUpdate];
119 const path = fixturePaths[fileToUpdate];
120
121 await performFileOperation(
122 () => writeFileSync(path, content),
123 useRunApi,
124 );
125 await ran2.promise;
126
127 runs.push(currentRun);
128 child.kill();
129 await once(child, 'exit');
130
131 assert.strictEqual(runs.length, 2);
132
133 for (const run of runs) {
134 assertTestOutput(run, useRunApi);
135 }
136 };
137
138 const testRename = async () => {
139 await ran1.promise;

Callers 1

testRunnerWatchFunction · 0.85

Calls 6

performFileOperationFunction · 0.85
writeFileSyncFunction · 0.85
assertTestOutputFunction · 0.85
killMethod · 0.80
onceFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…