(category: string, filename: string)
| 31 | * ``` |
| 32 | */ |
| 33 | export async function loadFixture(category: string, filename: string): Promise<Uint8Array> { |
| 34 | const path = join(FIXTURES_PATH, category, filename); |
| 35 | const buffer = await readFile(path); |
| 36 | |
| 37 | return new Uint8Array(buffer); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Save example output to the output directory. |