I am trying to make use of the api-stubs provided in ember-app-kit for testing.
The stubs work correctly when I view the site in the browser, and when I run the tests by visting /tests
in the browser.
However, when I run the tests from the command line with testem (by running grunt test:server
) the tests fail as the stub data isn't returned.
You can find a minimal example demonstrating the problem here: https://github.com/tomclose/minimal_eak_test_stub_problem, created from the most recent version of ember-app-kit.
What am I doing wrong?