-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Karma task: Wrong path to karma.conf.js #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@melo0187 this would be great for your first PR! |
On it's way. Could become tomorrow morning though. |
Just to note: my project [generated with an older version] has the |
@JaKXz I'm happy to hear that I helped =) |
@melo0187 I did not figure out how |
@royling |
@JaKXz Thank you for pointing out the upcoming major structure change, looking forward to v2.0. For now, I already fixed the problem by manually changing the path in basePath: '..',
...
files: [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/bower_components/angular-resource/angular-resource.js',
'app/bower_components/angular-cookies/angular-cookies.js',
'app/bower_components/angular-sanitize/angular-sanitize.js',
'app/bower_components/angular-route/angular-route.js',
'app/scripts/*.js',
'app/scripts/**/*.js',
'test/client/spec/**/*.js'
] |
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)
The file is actually not in the project's root, but in test/. Changing line 399 from
configFile: 'karma.conf.js'
toconfigFile: 'test/karma.conf.js'
solved the issue for me.The text was updated successfully, but these errors were encountered: