在多次成功运行ember test
和ember test -s
之后,我无法在特定项目上运行它们中的任何一个。自上次成功运行以来,我唯一能想到的是Terminal.app在ember test -s
运行时崩溃了。
现在,当我在该项目上运行ember test -s
时,总是会收到以下错误:
Global error: Error: Assertion Failed: The initializer 'container-debug-adapter' has
already been registered at http://localhost:7357/assets/vendor.js, line 38210
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 38210
Error: Assertion Failed: The initializer 'container-debug-adapter' has already been
registered at http://localhost:7357/assets/vendor.js, line 38210
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 38210
如果我尝试在不同的项目上运行ember test -s
,它运行得很好。所以在我看来,一定是git没有跟踪到的东西在项目文件夹的某个地方导致了这个问题。
- ember:3.14.1
- Ember命令行界面:
1条答案
按热度按时间up9lanfz1#
我通过删除
node_modules
和package-lock.json
,然后运行npm install
解决了这个问题。我希望我能理解是什么原因导致了这个问题,以及为什么重新安装我的所有依赖项可以修复这个问题。