Testing and Coffescript

Hi,

I’m using Ember 1.13.13 and trying to run tests with: ember test.

In my tests I use something like: moduleFor(‘route:four-oh-four’, ‘FourOhFourRoute’, {}) but I get: Promise rejected before it exists: Attempting to register an unknown factory: route:four-oh-four

I suspect it has something to do with coffeescript… Does anyone used ember-cli-coffescript with tests successfully?

Thanks.

I’m sorry, my mistake. My problem had nothing to do with coffeescript!

I ignored one Phantom.js error before all the “unknown factory” errors. It was just an “Unexpected token ‘,’” The reason was duplicate key in some json object.

It caused all the other modules to not load… hence the “unknown factory” errors

1 Like