( testResults: Array<AssertionResult>, outputStream: NodeJS.WritableStream, )
| 41 | import type {Filter, TestRunData} from './types'; |
| 42 | |
| 43 | export const printCollectedTestTree = ( |
| 44 | testResults: Array<AssertionResult>, |
| 45 | outputStream: NodeJS.WritableStream, |
| 46 | ): void => { |
| 47 | const printSuite = (suite: Suite, indent: number): void => { |
| 48 | if (suite.title) { |
| 49 | outputStream.write(`${' '.repeat(indent)}${suite.title}\n`); |
| 50 | } |
| 51 | for (const t of suite.tests) { |
| 52 | outputStream.write(`${' '.repeat(indent + 1)}${t.title}\n`); |
| 53 | } |
| 54 | for (const child of suite.suites) { |
| 55 | printSuite(child, indent + 1); |
| 56 | } |
| 57 | }; |
| 58 | const root = VerboseReporter.groupTestsBySuites(testResults); |
| 59 | printSuite(root, 0); |
| 60 | }; |
| 61 | |
| 62 | const getTestPaths = async ( |
| 63 | globalConfig: Config.GlobalConfig, |
no test coverage detected