Closed gugol2 closed 6 years ago
Can you provide a repro project? My tests run fine with karma@1.0
Create an angular project with yeoman (using grunt, not gulp) and try running the tests.
Does not reproduce it for me: This project works fine for me: https://github.com/dignifiedquire/grunt-karma-192
Sorry for my delay.
It's quite strange, I get it when running grunt on windows but not in linux. I tested your repo in W7 and Ubuntu14.04 and it only fails in W7.
It also happens just the same with my repo.
So in W7 I sorted out by installing the the version that grunt-karma needs according to the docs:
This current version uses karma`@0.13.x ...
npm install karma@0.13.22 --save-dev
With currently supported versions of Node.js and npm (Node 6+, npm 3+) peerDependencie are not automatically downloaded (unlike regular dependencies). Instead, it is up to the project to decide what and which version to install.
As such, any version of karma and any version of grunt-karma can be used together. The peerDependencies
only prints a soft warning if they don't match what we recommend and support.
The karma 1.x support has been been added and released, so closing this report. See https://github.com/karma-runner/grunt-karma/issues/267 for a similar issue with karma 3.x, which we're fixing next.
Thanks!
When installing grunt-karma
npm install grunt-karma --save-dev
it install karma^1.0.0 with it. And that breaks the tests:More info here.