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

Function parsePreviousRuns

lib/internal/test_runner/utils.js:186–198  ·  view source on GitHub ↗
(rerunFailuresFilePath)

Source from the content-addressed store, hash-verified

184}
185
186function parsePreviousRuns(rerunFailuresFilePath) {
187 let data;
188 try {
189 data = readFileSync(rerunFailuresFilePath, 'utf8');
190 } catch (err) {
191 if (err.code === 'ENOENT') {
192 data = '[]';
193 } else {
194 throw err;
195 }
196 }
197 return JSONParse(data);
198}
199
200async function getReportersMap(reporters, destinations) {
201 return SafePromiseAllReturnArrayLike(reporters, async (name, i) => {

Callers 1

setupFailureStateFileFunction · 0.85

Calls 1

readFileSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…