No provider for “framework:jasmine”! (Resolving: framework:jasmine)

前端 未结 6 1377
死守一世寂寞
死守一世寂寞 2020-12-22 21:32

When I run the command grunt I get the following warning:

Running \"karma:unit\" (karma) task
Warning: No provider for \"framework:jasmine\"! (         


        
6条回答
  •  Happy的楠姐
    2020-12-22 21:57

    My problem was in my karma.config.js file:

    plugins: [require("karma-webpack")]
    

    This caused the other karma-* plugins not to be loaded, which includes karma-jasmine.

提交回复
热议问题