Top "Karma-mocha" questions

karma-mocha is a Karma plugin.

TypeError: expect(...).to.be is not a function

I am configuring my Karma amd mocha framework with grunt in my project. When I am running karma start I …

javascript karma-runner karma-mocha
How to write a post request test in mocha with data to test if response matches?

Question: How do would I write a post request test in mocha that tests if the response matches? The response …

node.js mocha.js karma-mocha
No binary for PhantomJS browser on your platform. Please, set "PHANTOMJS_BIN" env variable

My package.json looks like this.. "karma-phantomjs-launcher": "^0.1.4", "karma-safari-launcher": "^0.1.1", "karma-sinon-chai": "~0.2.0", "karma-spec-reporter": "~0.0.16", "mocha": "~1.20.1" my npm version is 2.2.0 whay am I getting this …

phantomjs karma-runner mocha-phantomjs karma-mocha karma-coverage
Karma, PhantomJS and es6 Promises

I am writing a JavaScript library that uses the new es6 promises. I can test the library in Firefox because …

javascript phantomjs karma-runner es6-promise karma-mocha
Jasmine angular unit test 'Cannot read 'property' of undefined

I have just started learning angular unit testing. However, this test on a function with http call fails. I have …

javascript angularjs unit-testing karma-jasmine karma-mocha
"TS2322: Type 'Timeout' is not assignable to type 'number'" when running unit tests

I have two TypeScript packages, and one package (Package A) depends on the other (Package B). Each package has a …

typescript unit-testing karma-runner karma-mocha
Mocha unit tests running with Karma - done() is not defined

I'm trying to get tests written with Mocha to work running Karma, and they sort of work, but I cannot …

javascript unit-testing mocha.js karma-runner karma-mocha
Karma can't load webpack

I'm getting this error; 16 07 2015 13:03:52.741:WARN [preprocess]: Can not load "webpack"! Error: Can not resolve circular dependency! (Resolving: preprocessor:webpack -&…

javascript karma-runner webpack karma-mocha
Difference between Karma and Mocha

I am new to the Javascript world, being majorly into OOP. I have tried to look up online for a …

mocha karma-runner karma-mocha
How do I run only certain tests in karma?

I have karma config set up correctly, config file, running in the background, just great. As soon as I change …

karma-runner karma-mocha