question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adapter not recognized by karma

See original GitHub issue

As of today, getting the following error:

Firefox 34.0.0 (Mac OS X 10.10) ERROR
  You need to include some adapter that implements __karma__.start method!

We are running karma 0.12.19, karma-mocha 0.1.6, and mocha 1.21.3. Tried updating everything to the latest versions with the same result.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:26 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
maksimrcommented, Jun 12, 2018

@NullVoxPopuli it looks like a bug in karma so I think a fix will be more helpful 😃

2reactions
maksimrcommented, Jun 12, 2018

@NullVoxPopuli, first of all, you still should make $root/**/*.js more specific because webpack is processing adapter file

Second, you can’t use {} for files because it breaks karma - https://github.com/NullVoxPopuli/react-vs-ember/blob/master/testing/react/tests/karma.conf.js#L16

So you can replace it by this:

    files: [
      path.resolve(root, 'tests/**/*.ts'),
      path.resolve(root, 'tests/**/*.tsx'),
      // root + '/src/**/*.ts',
      // root + '/src/**/*.tsx',
      // root + '/tests/**/*.tsx',
      // root + '/tests/**/*.ts',
    ],

It should work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: You need to include some adapter that implements ...
I was facing this issue while running specs on the Angular.js codebase. I had to run npm install karma-jasmine -g to get this...
Read more >
Configuration File - Karma
The easiest way to generate an initial configuration file is by using the karma init command. This page lists all of the available...
Read more >
karma-runner/karma - Gitter
Hi, unlike node, V8 logs a an error thrown inside a Promise, and Karma reports a test as failed. Is it possible to...
Read more >
karma-jasmine-jquery-fix - npm
Jasmine-jquery plugin for Jasmine in karma. ... Start using karma-jasmine-jquery-fix in your project by running ... It karma adapter for.
Read more >
Karma JS Testing: What, Why, and How to Get Going Right Now
There are available plugins for the most well-known testing frameworks. Alternatively, you can also write an adapter for your favorite testing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found