Error: You need to include some adapter that implements __karma__.start method

后端 未结 26 1467
梦谈多话
梦谈多话 2020-12-01 11:53

I\'m trying to add some unit tests to one of my projects.

So far I\'ve installed and configured karma, and have installed jasmine. I\'ve one test file in my te

26条回答
  •  一个人的身影
    2020-12-01 12:20

    I had a problem with karma.conf.js file code format:

    files: [
        // Modules
        ,"client/bower_components/angular/angular.min.js"
        ,"client/bower_components/angular-mocks/angular-mocks.js"
        // App
        ,"client/app/app.module.js"
        // Test
        // ,"test/**/*.spec.js"
    ],
    

    The extra comma in files array have cause this error:

    You need to include some adapter that implements __karma__.start method!
    

提交回复
热议问题