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

Function cleanupTmpFile

test/parallel/test-repl-reverse-search.js:275–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273const runTestWrap = common.mustCall(runTest, numtests);
274
275function cleanupTmpFile() {
276 try {
277 // Write over the file, clearing any history
278 fs.writeFileSync(defaultHistoryPath, '');
279 } catch (err) {
280 if (err.code === 'ENOENT') return true;
281 throw err;
282 }
283 return true;
284}
285
286function runTest() {
287 const opts = tests.shift();

Callers 1

runTestFunction · 0.70

Calls 1

writeFileSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…