Search code examples
ember.jsember-dataember-cli

How to access mock api endpoints from ember acceptance test?


I have a /api/users mock endpoint under server/mocks/users.

It works fine in the browser when I run ember s, but it fails when I run ember test for an acceptance test to visit the users route. I get a 404, Not found for /api/users. All my unit tests pass.

What am I missing?


Solution

  • It seems that this isn't possible yet.

    I decided to use ember-cli-mirage instead.