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

后端 未结 26 1363
梦谈多话
梦谈多话 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:03

    Tt's complaining about the adapter which is probably jasmine or mocha. Either the adapter is missing, either is not setup correctly, either it's an outdated or buggy version of the adapter.

    In my case I had an old version of mocha 2.5.3 which was not compatible with karma 1+. I updated the mocha dependency to the latest version available 3.2.0 and the problem solved.

提交回复
热议问题