I'm doing a small toy project to test Yeoman and angular.
After having created the application with yo angular
I've started writing a service and its tests. Everything was perfect until I tried to ignore a test.
From what I've read I should be able to ignore a test changing it
to xit
and a suit changing describe
to xdescribe
.
But when I save and grunt launches the tests, I get a 'xit' is not defined
or 'xdescribe' is not defined
error.
Is there something I'm missing?
Gruntfile.js
at the end locategrunt.registerTask('default', [ 'newer:jshint', 'test', 'build' ]);
remove thetest
line, when you need to test usegrunt test
– Outofdatexdescribe
andxit
to the.jshintrc
file it still thrown an error. My project is also anangular-generator
app. – Wellpreservedtest/.jshintrc
? I ask because there is another.jshintrc
at the root of the application. – YolandeGruntFile
. @mrjedmao – Yolande