MCPcopy
hub / github.com/jestjs/jest / allFailedTests

Method allFailedTests

packages/jest-test-sequencer/src/index.ts:219–221  ·  view source on GitHub ↗
(tests: Array<Test>)

Source from the content-addressed store, hash-verified

217 }
218
219 allFailedTests(tests: Array<Test>): Array<Test> | Promise<Array<Test>> {
220 return this.sort(tests.filter(test => this.hasFailed(test)));
221 }
222
223 cacheResults(tests: Array<Test>, results: AggregatedResult): void {
224 const map = Object.create(null) as Record<string, Test | undefined>;

Callers 2

runJestFunction · 0.45

Calls 2

sortMethod · 0.95
hasFailedMethod · 0.95

Tested by

no test coverage detected