mercredi 20 juillet 2016

EmberJS global error when running tests

I am trying to integrate automated testing using Ember Testing.

The application runs fine on browser, without any errors. I tried simply running

ember test

on command line, but get a bunch of global errors and all the tests fail.

These are the errors I'm getting:

not ok 1 PhantomJS 2.1 - Global error: SyntaxError: Unexpected token ',' at http://localhost:4302/assets/vendor.js, line 145617

not ok 2 PhantomJS 2.1 - Global error: Error: Could not find module ember-metal/core required by: ember-testing/index at http://localhost:4302/assets/test-support.js, line 62

not ok 3 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:4302/assets/tests.js, line 1

...

These don't make sense to me since I shouldn't be editing vendor.js and the modules it says it cannot find are there. Any ideas?




Aucun commentaire:

Enregistrer un commentaire