vlucas / frisby

Frisby is a REST API testing framework built on Jest that makes testing API endpoints easy, fast, and fun.

Home Page:http://frisbyjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do multipart forms work with version 1 of Frisby?

robbsherwin opened this issue · comments

I have two projects that I use Frisby for - the first is on the latest version and everything works great. We have one "legacy" project on version 1. We have been attempting to do document uploads with multipart forms. Does this work on this version? (If so and there's an example somewhere, I just haven't found it but would love to see it.) Thanks!

Yes, there is a way to do it, but not the same way with FormData.

Check out the request forms docs since that is what Frisby v0.8x uses (just pass it in as the options parameter).

Thank you very much!