Join Slack
Powered by
In `jest-pact` is there a way to `addInteraction` ...
# pact-js
r
Rafi Gemhar
05/10/2022, 3:13 PM
In
jest-pact
is there a way to
addInteraction
that will respond with body as blob data (csv, xlsx or pdf).
y
Yousaf Nabi (pactflow.io)
05/10/2022, 3:14 PM
https://github.com/YOU54F/template-jest-pact-typescript/blob/master/src/pact/client/fileupload.pacttest.ts
Yousaf Nabi (pactflow.io)
05/10/2022, 3:15 PM
It's still v2, I need to update it to v3, and ideally remove or explain that supertest, would normally be the client under test
https://github.com/YOU54F/template-jest-pact-typescript/blob/b79ac8ba28f3a2a2b4404596597c852019c474fa/src/pact/client/fileupload.pacttest.ts#L11-L14
and is just used for demo purposes
r
Rafi Gemhar
05/10/2022, 3:17 PM
Thanks for the prompt response.
5
Views
Open in Slack
Previous
Next