所以这曾经很好用,但自从我将ember-cli从0.1.8更新到0.1.12后,我的测试将无法启动,jshint永远不会检查我在保存时使用的文件。
ember test
version: 0.1.12
Built project successfully. Stored in “/[...]/tmp/class-tests_dist-h3LlgY3C.tmp".
1..0
tests 0
pass 0
fail 0
在http://localhost:4200/tests
它看起来不错,但0 assertions of 0 passed, 0 failed.
。
我已经遵循了升级路径,我认为我没有错过任何对bower.json或package.json的依赖。
如果存在一些完全错误的依赖,那么这里可以找到任何人吗?
的package.json
{
"devDependencies": {
"broccoli-asset-rev": "2.0.0",
"broccoli-ember-hbs-template-compiler": "1.6.1",
"ember-cli": "0.1.12",
"ember-cli-6to5": "3.0.0",
"ember-cli-app-version": "0.3.1",
"ember-cli-autoprefixer": "0.2.0",
"ember-cli-content-security-policy": "0.3.0",
"ember-cli-dependency-checker": "0.0.7",
"ember-cli-fastclick": "1.0.3",
"ember-cli-flash": "0.2.0",
"ember-cli-htmlbars": "0.5.4",
"ember-cli-ic-ajax": "0.1.1",
"ember-cli-inject-live-reload": "1.3.0",
"ember-cli-pretender": "0.3.1",
"ember-cli-qunit": "0.3.1",
"ember-cli-uglify": "1.0.1",
"ember-cli-responsive": "0.1.0",
"ember-cli-sass": "3.0.3",
"ember-cli-simple-auth": "0.7.2",
"ember-cli-simple-auth-oauth2": "0.7.2",
"ember-cli-spinjs": "0.3.0",
"ember-data": "1.0.0-beta.14.1",
"ember-document-title": "0.1.2",
"ember-export-application-global": "1.0.0",
"ember-cli-uglify": "1.0.1",
"express": "4.8.5",
"glob": "4.0.5",
"grunt": "0.4.5",
"grunt-contrib-htmlmin": "0.3.0",
"grunt-svgstore": "0.4.1"
}
}
bower.json
{
"dependencies": {
"handlebars": "2.0.0",
"jquery": "2.1.3",
"ember": "1.9.1",
"ember-data": "1.0.0-beta.14.1",
"ember-resolver": "0.1.11",
"ember-i18n": "2.9.0",
"loader.js": "ember-cli/loader.js#1.0.1",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli/ember-cli-test-loader#0.1.0",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.0.2",
"ember-qunit": "0.1.8",
"ember-qunit-notifications": "0.0.5",
"qunit": "1.17.1",
"moment": "2.9.0",
"cookie-monster": "0.3.0",
"inuit-functions": "0.2.0",
"inuit-mixins": "0.2.3",
"inuit-normalize": "3.0.2",
"inuit-reset": "0.1.1",
"inuit-box-sizing": "0.2.0",
"inuit-shared": "0.1.3",
"spin.js": "2.0.2",
"inuit-clearfix": "0.2.1",
"bootstrap-daterangepicker": "https://github.com/dangrossman/bootstrap-daterangepicker.git#1.3.17",
"bootstrap-sass-official": "3.3.3",
"matchmedia": "0.2.0",
"fastclick": "1.0.6",
"animate-sass": "0.6.2",
"pretender": "0.6.0",
"ember-simple-auth": "0.7.2",
"gmaps": "https://github.com/hpneo/gmaps.git#~0.4.16",
"jQuery.mmenu": "~4.7.5",
"susy": "~2.2.2"
},
"resolutions": {
"handlebars": "2.0.0",
"ember": "1.9.1",
"moment": "2.9.0"
}
}
答案 0 :(得分:0)
所以我做了一个新的更新,并且非常仔细地遵循指南,现在它可以工作了。谢谢@mikeazo的评论。我无法说出我做错了什么,但它又重新开始了。所以我所能说的就是遵循升级指南并且不要匆忙通过它们。