You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the need to mock some xml responses, but make some changes to the content on the fly.
I can easily have the .mock file import a .js file that will, in turn, load and modify the xml.
the thing is, the importHandler.js file clearly states that
if (importThisFile.endsWith('.js')) {
return JSON.stringify(eval(content.toString()));
so my xml comes out as a json stringified string...
is there another way to go about this?
The text was updated successfully, but these errors were encountered:
Hello,
we ended up going win a different direction.
but i'll keep this in mind for the future.
thank you very much for the suggestion :)
Regards
Eduardo Carvalho
Shubhendu Madhukar ***@***.***> escreveu no dia quinta,
13/05/2021 à(s) 04:36:
Hi @E-Fil <https://github.com/E-Fil>,
Since this project seems to be inactive, I created another implementation
of this with some improvements. I wonder if you'd be willing to try
Camouflage <https://fauxauldrich.github.io/camouflage/>.
It supports customized XML Responses, and though the implementation is a
bit different, you should be able to change the content of your XML at the
runtime.
There are some other advanced features which I think you'd like. Let me
know your thoughts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIOMEOEI3FC42PVYAYGQC3TNNCNDANCNFSM4RSGPLMA>
.
I have the need to mock some xml responses, but make some changes to the content on the fly.
I can easily have the
.mock
file import a.js
file that will, in turn, load and modify the xml.the thing is, the
importHandler.js
file clearly states thatso my xml comes out as a json stringified string...
is there another way to go about this?
The text was updated successfully, but these errors were encountered: