Skip to content

non json, customized response #94

@E-Fil

Description

@E-Fil

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions