Closed niemyjski closed 9 years ago
I'm not entirely clear, did this happen on 0.10.1? Because if it only happened on 0.10.0 that's fine because that release is broken.
I checked 10.0 and 10.1 and both broke it for me. The only one that works for me is 0.9. To reproduce you can pull down that repro and do npm install and then grunt test.
I had a similar issue due to the data.files not flattening properly. I changed the grunt-karma.js file by adding data.files =_.flatten(data.files);
to line 85. And it works for me now. The _.flatten used to be there in the 0.9 version and the [].concat is not flattening like it should on my machine.
To test it pass files: [['a.js','b.js','c.js'],'d.js','e.js']
under karma -> options -> files in the config and it will break then add the line of code and it will work.
The code now looks like.
if (data.files || options.files) {
data.files = [].concat.apply(options.files || [], this.files.map(function(file) {
return file.src.map(function(src) {
var obj = {
pattern: src
};
['watched', 'served', 'included'].forEach(function(opt) {
if (opt in file) {
obj[opt] = file[opt];
}
});
return obj;
});
}));
data.files =_.flatten(data.files);
}
Nice find!, Is there any chance we could add this to the latest release?
I have this problem with 0.10.1
too. 0.9.0
works.
@Dignifiedquire I just upgraded to 0.11.1 and I'm still getting the same error.
If you want you can pull down my repo https://github.com/exceptionless/Exceptionless.UI (run npm install
and bower install
) and then do grunt test
, watch it pass all the tests and then upgrade this package and then run it again to watch it fail.
Same problem here. Was trying to go from 0.8 to 0.11. A lot going on in the 'files' to get all the angular templates compiled, etc.
Fixed in 0.11.2
.
Thanks! I'll try and check this out soon!
I just tried upgrading our project ( https://github.com/exceptionless/Exceptionless.UI ) from 0.9 to the latest version and I started getting errors:
I tried 10.1 and nothing but it definitely happened after .9