[英]Grunt, Jasmine, Yeoman
I am using Yeoman to develop an AngularJs application and I am about to create a version of my application that I can ship. 我正在使用Yeoman开发AngularJs应用程序,并且将要创建可以发布的应用程序版本。 To make it possible I need to use grunt and run my tests first (grunt & jasmine).
为了使之成为可能,我需要使用grunt并首先运行测试(grunt和茉莉花)。 Every time I run my tests I get the following Error :
每次运行测试时,都会出现以下错误:
07 04 2016 14:52:38.536:ERROR [config]: Error in config file!
[ReferenceError: jasmine is not defined]
ReferenceError: jasmine is not defined
you need to define jasmine as a global variable, add it in your jshint configuration in the .jshintrc file you may find something like this: 您需要将jasmine定义为全局变量,将其添加到.jshintrc文件的jshint配置中,您可能会发现如下所示:
"globals": { // Globals variables.
"jasmine": true,
"angular": true,
.... and so on
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.