gulp-jasmine-phantom
gulp-jasmine-phantom copied to clipboard
When there are some kind of errors in the spec file, it will say "no specs found"
Given this gulpfile.js
:
...
gulp.task('tests', function() {
return gulp.src('specs/example.js')
.pipe(jasmine({
integration: true
}));
});
...
The below specs/example.js
, with the weird characters at the bottom, will give me an output of no specs found
// specs/example.js
describe("truth", function() {
it("is truth", function() {
expect(true).toBe(true);
});
});
*$|~ Random ass stuff
The below specs/example.js
, with the word characters at the bottom commented out, will run the tests are normal:
// specs/example.js
describe("truth", function() {
it("is truth", function() {
expect(true).toBe(true);
});
});
// *$|~ Random ass stuff
Note
This ONLY happens when integration: true
, otherwise it gives me proper error messages
+1