MCPcopy Create free account
hub / github.com/benwinding/react-admin-import-csv / getFile

Function getFile

src/csv-extractor.spec.ts:5–9  ·  view source on GitHub ↗
(relPath: string)

Source from the content-addressed store, hash-verified

3import * as path from "path";
4
5function getFile(relPath: string): fs.ReadStream {
6 const testCsvPath = path.join(__dirname, relPath)
7 const csvFile = fs.createReadStream(testCsvPath)
8 return csvFile;
9}
10
11describe("csv extractor", () => {
12 test("processCsvData", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected