generator-angular icon indicating copy to clipboard operation
generator-angular copied to clipboard

Warning: No provider for "framework:jasmine"!

Open olalonde opened this issue 12 years ago • 4 comments

I'm getting this error after a fresh install and running grunt test:

Running "clean:server" (clean) task
Cleaning .tmp...OK

Running "concurrent:test" (concurrent) task

    Running "copy:styles" (copy) task
    Copied 1 files

    Done, without errors.


    Execution Time (2014-04-18 10:42:30 UTC)
    loading tasks   4ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 27%
    copy:styles    10ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 67%
    Total 15ms

Running "autoprefixer:dist" (autoprefixer) task
Prefixed file ".tmp/styles/main.css" created.

Running "connect:test" (connect) task
Started connect web server on 127.0.0.1:9001.

Running "karma:unit" (karma) task
Warning: No provider for "framework:jasmine"! (Resolving: framework:jasmine) Use --force to continue.

Aborted due to warnings.


Execution Time (2014-04-18 10:42:28 UTC)
concurrent:test    1.8s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 94%
autoprefixer:dist  48ms  ▇▇▇ 3%
karma:unit         35ms  ▇▇ 2%
Total 1.9s

I have never used karma before so maybe there's something I should do before it works but on the other hand, it would be good if this generator not throw errors after a fresh install.

olalonde avatar Apr 18 '14 10:04 olalonde

you may want to install karma-jasmine globally. e.g.:

npm install -g karma-jasmine

pmth avatar Apr 19 '14 05:04 pmth

Also had this problem. Needed to install the karma-chrome-launcher as well. Why is it that these libraries are not included in the generator? Is there a legitimate reason for this configuration?

beauxjames-ZZ avatar Apr 21 '14 18:04 beauxjames-ZZ

I as well. Would it be a problem to add these as dev dependencies in package.json?

erikdonohoo avatar Apr 21 '14 18:04 erikdonohoo

dup of #629

eddiemonge avatar Apr 21 '14 19:04 eddiemonge