(fixture: string, stdout: string, stderr: string)
| 114 | } |
| 115 | |
| 116 | function printOutput(fixture: string, stdout: string, stderr: string) { |
| 117 | const lines = ( |
| 118 | `\nOutput for "${fixture}"\n` + |
| 119 | `\n----- stdout -----\n` + |
| 120 | stdout + |
| 121 | `\n----- stderr -----\n` + |
| 122 | stderr |
| 123 | ).split('\n'); |
| 124 | |
| 125 | const getPrefix = (nr: number) => { |
| 126 | return nr === 0 ? '╭' : nr === lines.length - 1 ? '╰' : '│'; |
| 127 | }; |
| 128 | |
| 129 | console.log( |
| 130 | lines.map((line, index) => ` ${getPrefix(index)} ${line}`).join('\n') |
| 131 | ); |
| 132 | } |
| 133 | |
| 134 | export function shouldSkip(name: string, versions: string) { |
| 135 | if (!satisfies(process.version, versions)) { |
no test coverage detected