@cumulus/test-data
Version:
Includes the test data for various packages
23 lines • 753 B
TypeScript
import fs from 'fs';
/**
* Read test data in as a string
*
* @param {string} name - the path to the test data
* @returns {Promise<string>} the test data as a string
*/
export declare const loadTestData: (name: string) => Promise<string>;
/**
* Read and parse JSON-formatted test data
*
* @param {string} name - the path to the test data
* @returns {Promise<unknown>} the test data parsed into Javascript
*/
export declare const loadJSONTestData: (name: string) => Promise<unknown>;
/**
* Get a stream containing test data
*
* @param {string} name - the path to the test data
* @returns {Stream} the test data as a writable stream
*/
export declare const streamTestData: (name: string) => fs.ReadStream;
//# sourceMappingURL=index.d.ts.map