Skip to content

When there are some kind of errors in the spec file, it will say "no specs found" #67

@jonleung

Description

@jonleung

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions