I am expanding DS.ActiveModelAdapter to use a custom host , since my API is on a subdomain, using, for example, http://api.lvh.me:3000 : http://api.lvh.me:3000 when working locally.
In my tests, I try to use Pretender to mock responses to API requests, but Pretender does not handle requests, I suspect because of this custom host setting.
I tried many different options to do this work, including setting the host to different values, and not setting the host at all, running tests using the --proxy , etc.
I obviously just throw darts on the wall and hope something sticks. Can someone help me figure out what I should do?
source share