当我ember test
在一个项目上运行时,我收到了这个错误
Log: |
{ type: 'error',
text: 'Error: Could not find module `otherapp/config/environment` imported from `otherapp/tests/helpers/resolver` at http://localhost:7357/assets/vendor.js, line 173\n' }
...
not ok 2 PhantomJS 2.1 - Global error: Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 15359
---
Log: |
{ type: 'error',
text: 'Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 15359\n' }
...
我不确定如何调试它,因为这是在测试套件中发生的,并且没有调试窗口,放置debugger;
也无济于事。这也是别人的项目。
这在 ember-cli 或任何包中都不是问题,因为我创建了一个新的 ember 应用程序并编写了一些验收测试而没有任何此类错误。我不确定如何跟踪或调试此错误。