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:
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: