Ember CLI 不 运行 jshint 或加载任何测试
Ember CLI doesn't run jshint or load any tests
所以这过去一切正常,但自从我将 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"
}
}
所以我做了一个新的更新,这次非常仔细地遵循了指南,现在它可以工作了。感谢@mikeazo 的评论。我真的不能说我做错了什么,但它又开始工作了。所以我只能说遵循升级指南,不要匆忙完成它们。
所以这过去一切正常,但自从我将 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"
}
}
所以我做了一个新的更新,这次非常仔细地遵循了指南,现在它可以工作了。感谢@mikeazo 的评论。我真的不能说我做错了什么,但它又开始工作了。所以我只能说遵循升级指南,不要匆忙完成它们。