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

Function getStateFile

test/parallel/test-runner-test-rerun-failures.js:90–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88];
89
90const getStateFile = async () => {
91 const res = JSON.parse((await readFile(stateFile, 'utf8')).replaceAll('\\\\', '/'));
92 res.forEach((entry) => {
93 for (const item in entry) {
94 delete entry[item].children;
95 delete entry[item].duration_ms;
96 }
97 });
98 return res;
99};
100
101test('test should pass on third rerun', async () => {
102 const args = ['--test-rerun-failures', stateFile, fixture];

Calls 3

readFileFunction · 0.70
parseMethod · 0.65
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…