gitdagray / csv-to-sql-insert

Provide table data as a CSV (comma-separated values) file and output a SQL insert statement for a table with the same name as the file.
MIT License
97 stars 122 forks source link

Use a mock filesystem for testing #69

Open Klock85 opened 10 months ago

Klock85 commented 10 months ago

The tests in my PR (#68) write test files to the filesystem and remove them after tests are complete.

I am sure there is a way to do this using a mocked filesystem instead which may be less resource intensive in terms of reads and writes?

devlopersabbir commented 10 months ago

Check this pull request #65 I think we should use like way our code. Because index.ts file is not fully readable...

Note please check this PR and update me... :)