MCPcopy Create free account
hub / github.com/LibPDF-js/core / saveTestOutput

Function saveTestOutput

src/test-utils.ts:233–244  ·  view source on GitHub ↗
(filename: string, data: Uint8Array)

Source from the content-addressed store, hash-verified

231 * ```
232 */
233export async function saveTestOutput(filename: string, data: Uint8Array): Promise<string> {
234 const fullPath = join(TEST_OUTPUT_PATH, filename);
235 const dir = join(fullPath, "..");
236
237 // Ensure directory exists
238 await mkdir(dir, { recursive: true });
239
240 // Write the file
241 await writeFile(fullPath, data);
242
243 return fullPath;
244}

Calls

no outgoing calls

Tested by

no test coverage detected