(
filename: string,
additionalRendererOptions: RendererOptions,
additionalFiles: string[]
)
| 503 | } |
| 504 | |
| 505 | async test( |
| 506 | filename: string, |
| 507 | additionalRendererOptions: RendererOptions, |
| 508 | additionalFiles: string[] |
| 509 | ): Promise<void> { |
| 510 | if (this.language.compileCommand) { |
| 511 | exec(this.language.compileCommand); |
| 512 | } |
| 513 | for (const fn of additionalFiles) { |
| 514 | if (!fn.endsWith(".json")) { |
| 515 | continue; |
| 516 | } |
| 517 | const jsonBase = path.basename(fn); |
| 518 | compareJsonFileToJson({ |
| 519 | expectedFile: jsonBase, |
| 520 | given: { command: this.language.runCommand(jsonBase) }, |
| 521 | strict: false, |
| 522 | allowMissingNull: this.language.allowMissingNull |
| 523 | }); |
| 524 | } |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | export const allFixtures: Fixture[] = [ |
nothing calls this directly
no test coverage detected