How do I fix my generator-angular project so that grunt test works?

前端 未结 3 463
情书的邮戳
情书的邮戳 2021-02-03 21:10

I am working off of this tutorial: http://www.sitepoint.com/kickstart-your-angularjs-development-with-yeoman-grunt-and-bower/ as a means to understand what files are created usi

3条回答
  •  半阙折子戏
    2021-02-03 21:35

    I seem to have fixed my problem, for anyone with a similar problem:

    Within my karma.conf.js I added the following:

    plugins: [
        'karma-chrome-launcher',
        'karma-jasmine'
        ],
    

    At first I added 'karma-jasmine' but was then met with "Can not load "Chrome", it is not registered!" This was solved by adding 'karma-chrome-launcher' as a plug-in

    Not sure if it was my fault or whether generator-angular is out of date, but it is now working.

提交回复
热议问题