Shubhendu Madhukar
Shubhendu Madhukar
@wefahakem Camouflage uses [compression](https://www.npmjs.com/package/compression) middleware for express. However only default options are supported at this time. Could you please confirm if this middleware (and its options) serve the required purpose...
Hi @NikhilNanjappa, To have a root path for all the mocked routes, you simply need to create a folder structure that can replicate it. For example, to mock the routes...
If I am being honest, I am not really convinced with this solution. While it does work, I think it would be counterproductive having an additional config **just** to add...
I have implemented the required changes, however I'd like to run few more tests before I merge it to main. If you'd like to test it yourself, feel free to...
Closed in #185
Hi @szokebarnabas, >It's should be possible to define request matchers and return responses accordingly. Could you please elaborate with an example, what kind of request matchers are you referring to?
Have you tried `{{#is request.body.client_id 'some-client-id'}}`? EDIT: ``` {{#is request.body.client_id 'some-client-id'}} { "client_id": "{{capture from='body' using='jsonpath' selector='$.client_id'}}" } {{/is}} ```
That's strange. It worked for me! Would you be open to sharing the complete contents of your .mock file?
Unfortunately, I don't seem to be able to replicate it. 1. Created a `test/POST.mock` file with following content ``` {{#is request.body.client_id 'valid-client-id'}} HTTP/1.1 200 OK Vary: Origin cache-control: no-store Content-Type:...
That is correct, my requests are being handled in workers. Here's the configuration, - My express app and middlewares are declared and configured in global scope. - Master handles worker...