Top "Karma-runner" questions

Karma provides developers a testing environment where they don't have to set up many things, rather just write code and get instant feedback in order to improve productivity and creativity.

Angular Karma Jasmine Error: Illegal state: Could not load the summary for directive

I'm developing a github repository (with angular 7 and angular-cli), and I have some tests with Karma and Jasmine working in …

javascript angular karma-runner karma-jasmine angular-cli
Unit testing AngularJS factories that have dependencies

When unit testing an Angular factory (with Karma + Jasmine), how do I inject a stub dependency into the factory under …

angularjs jasmine karma-runner
Mocking $httpBackend - how to handle "Unexpected request, No more request expected"?

I have a Jasmine test that is coded like this: it ("should send correct message to server to get data, …

angularjs jasmine karma-runner
jasmine tests in karma: Uncaught ReferenceError: require is not defined

Karma can not recognize 'require' statement in JSFileSpec.js file. Running karma.conf.js: (function() { describe("DummyEmitter creation", function(){ return …

javascript karma-runner jasmine-node
When to use "chore" as type of commit message?

What is the use of chore in semantic version control commit messages? Other types like feat or fix are clear, …

git version-control karma-runner commit-message
Injecting dependent services when unit testing AngularJS services

I'm testing service A, but service A depends on service B (i.e. service B is injected into service A). …

javascript unit-testing angularjs jasmine karma-runner
Running karma after installation results in 'karma' is not recognized as an internal or external command

I'm trying to run karma as part as an angular-seed project, after installing karma using npm install -g karma I …

node.js terminal karma-runner
Error: You need to include some adapter that implements __karma__.start method

I'm trying to add some unit tests to one of my projects. So far I've installed and configured karma, and …

karma-runner karma-jasmine
Angular 6 Unit Tests: An error was thrown in afterAll\nReferenceError: Can't find variable: $ thrown

When running my unit tests, from time to time, even if they pass, at the end of all the tests …

angular karma-runner angular6
RegeneratorRuntime is not defined

I am trying to run Karma-babel-preprocessor and a straight forward ES6 generator: //require('babel/polyfill'); describe("how Generators work", function() { …

javascript karma-runner babeljs karma-babel-preprocessor