Skip to content

Karma task: Wrong path to karma.conf.js #247

Closed
@melo0187

Description

@melo0187

When generating a new app and running grunt test you get:
ERROR [config]: File /path/to/projectroot/karma.conf.js does not exist!

I had a look at Gruntfile.js (lines 396 - 402)

    // Test settings
    karma: {
      unit: {
        configFile: 'karma.conf.js',
        singleRun: true
      }
    },

The file is actually not in the project's root, but in test/. Changing line 399 from
configFile: 'karma.conf.js' to configFile: 'test/karma.conf.js' solved the issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions