Open moefinley opened 5 years ago
@moefinley the ngapimock middleware does not go to the next middleware function unless you set your scenario to passthrough in apimock.
Do you want to set a variable that is used in your mocks? if so you can use the variable option in apimock
I want to use ng-apimock to mock using real a settings file with a single value modified for each scenario. This is so I don't have to create copies of all the settings I don't want to change in multiple mock JSON files. I was expecting to be able to use Express middleware to do this
However no request ever reaches the featureScenarioWriter function. I presume this is because the response is ended by ngApimockRequest.
Should my custom middleware be called? Is there another way I could change one value in a file as part of a scenario?