smollweide / node-mock-server

File based Node REST API mock server
MIT License
255 stars 65 forks source link

Import swagger from file #115

Closed remkoboschker closed 6 years ago

remkoboschker commented 6 years ago

How would I import a swagger definition from a file?

I have an updated swagger spec that has not been implemented by the api (yet) and would like to run my tests against it.

remkoboschker commented 6 years ago

I found that in the swagger import config object, you can set isTest to true and add a the path to the swagger.json relative to the folder you run the server from to path.

Perhaps this should be added to the swagger import readme?