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
Missing html templates in karma.conf #546
Comments
what line number does this go inside karma.conf? Or is it in some other file?
this is how my unit-tests.js looks like:
|
you need to append html templates in karma.conf |
@stewones My karma.conf.js looks like this: where do I add the new line?:
|
Sounds like you are trying another generator version, look at my yo-rc above, i am using 0.11 |
@stewones I am using 0.11 as well. In fact, I just updated my generator-gulp-angular to just make sure:
|
@dereklin okay, now check your karma.conf for listFiles(), it should look like this. function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDependencies: true
});
return wiredep(wiredepOptions).js
.concat([
path.join(conf.paths.src, '/app/**/*.module.js'),
path.join(conf.paths.src, '/app/**/*.js'),
path.join(conf.paths.src, '/**/*.spec.js'),
path.join(conf.paths.src, '/**/*.mock.js'),
path.join(conf.paths.src, '/**/*.html') //<---- //add this line
]);
} Maybe you have to pull generator from master, if you do not have this method. |
I downloaded generator-gulp-angular as zip and manually installed it to my machine. Now I see the same karma.conf.js. I added the line for html. But I am still getting:
|
Oh boy, I missed mocking my main app: module('mainApp'); It works now. Thanks @stewones |
Seems like a broke this when I made a new version of the karma conf. The PR of @zckrs should fix it. |
the plugin
karma-ng-html2js-preprocessor
is not working properly. as seen in #500directive
template
spec
yo-rc
My suggestion to fix
according by this sample, i realized that i need to append the html templates in karma.conf
here i solve this way
i can make a PR if it is all right
The text was updated successfully, but these errors were encountered: