Skip to content

Errors when test files start with letter and dash #4

@webuniverseio

Description

@webuniverseio

Hi, thank you very much for requirejs support.
Can you please check out my fork of karma-require example? If you'll run it you'll see that karma fails with following error:

Chrome 34.0.1797 (Windows) ERROR
        Uncaught TypeError: Cannot read property 'failedCount' of null
        at C:/Users/Sergey/AppData/Roaming/npm/node_modules/karma-jasmine/lib/adapter.js:126
Chrome 34.0.1797 (Windows) ERROR
        Uncaught TypeError: Cannot read property 'length' of null
        at C:/Users/Sergey/AppData/Roaming/npm/node_modules/karma-jasmine/lib/jasmine.js:2518
Chrome 34.0.1797 (Windows): Executed 1 of 2 ERROR (0.105 secs / 0 secs)

The only change which I made to your example was renaming test files to start with 't-' instead of end with 'Spec', appSpec.js -> t-app.js (I also adjusted that in config file and main-test.js).

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