Typescript: Testing file uploads with Supertest #34
Tessmore
started this conversation in
Typescript/NodeJS
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you have an API with an end-point that accepts files, and you want to test it then multiple approaches work:
Buffer
and use that instead. For regular objects this is quite simple. For Excel (or other formats) you probably want to use a library to generate the Buffer.Beta Was this translation helpful? Give feedback.
All reactions