(files: TestFile[])
| 228 | }; |
| 229 | |
| 230 | async function compile(files: TestFile[]): Promise<Map<string, string>> { |
| 231 | const tsconfig: TestFile = { |
| 232 | path: '/tsconfig.json', |
| 233 | content: JSON.stringify({ |
| 234 | compilerOptions: {strict: true}, |
| 235 | files: files.map((f) => f.path), |
| 236 | }), |
| 237 | }; |
| 238 | const outputs = await runPipeline([tsconfig, ...files], {optimize: false, format: false}); |
| 239 | return new Map(outputs.map((o) => [o.path, o.content])); |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * The file's top-level statements, reduced to a recognisable prefix, in emitted order. Generated |
no test coverage detected