My Meteor Server method calls another server to retrieve data first, cache in mongo db and then respond to request. I want to test my server code using Meteor with Velocity.
For unit test, I have a json file containing sample response from the api but I do not know how could I load that file to mock as api response for server test. Since it is server test, I cannot access jquery
or getJSONFixtures()
from jasmine-jquery
.
How can I load that json file in my server test code?
EDIT As from this answer I do not want to put my test resource files bundled as assets in /private
directory