I am trying to integrate automated testing using Ember Testing.
The application works fine in the browser without any errors. I tried just running
ember test
on the command line, but get a bunch of global errors and all tests fail.
These are the errors I get:
not ok 1 PhantomJS 2.1 - Global error: SyntaxError: Unexpected token ',' at http:
not ok 2 PhantomJS 2.1 - Global error: Error: Could not find module ember-metal/core required by: ember-testing/index at http:
not ok 3 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http:
...
When I run the tests in the browser, I do not get a syntax error (first above), the first error
Uncaught Error: Could not find module `analogue/resolver` imported from `analogue/tests/helpers/resolver`
This does not make sense to me, since I do not need to edit vendor.js, and there are modules that, according to him, they cannot find. Any ideas?
source
share