https://github.com/jmendiara/karma-mocha-as-promised
A Karma plugin - adapter for mocha-as-promised
https://github.com/jmendiara/karma-mocha-as-promised
Last synced: about 1 month ago
JSON representation
A Karma plugin - adapter for mocha-as-promised
- Host: GitHub
- URL: https://github.com/jmendiara/karma-mocha-as-promised
- Owner: jmendiara
- License: mit
- Created: 2014-03-13T16:42:32.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-15T18:09:56.000Z (about 11 years ago)
- Last Synced: 2025-04-05T11:34:12.819Z (2 months ago)
- Language: JavaScript
- Size: 157 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# karma-mocha-as-promised
[Mocha as promised](https://github.com/domenic/mocha-as-promised) for [Karma](http://karma-runner.github.io)
* It uses (and will always use) the latest compatible versions of every library.
* It uses `peerDependencies` only.
* No `bower` dependency.## Installation
Install the plugin from npm:
```sh
$ npm install karma-mocha-as-promised --save-dev
```## Usage
After installing [karma-mocha](https://github.com/karma-runner/karma-mocha),
add `mocha-as-promised` before `mocha` to the `frameworks` key in your Karma configuration:```js
module.exports = function(config) {
config.set({// frameworks to use
frameworks: ['mocha-as-promised', 'mocha']// ...
```### Usage with karma-requirejs
If you are going to use [karma-requirejs](https://github.com/karma-runner/karma-requirejs), make sure you place `requirejs` first in the order of your frameworks.
```js
frameworks: ['requirejs', 'mocha-as-promised', 'mocha']
```## Contributors
[Martin Hansen](https://github.com/mokkabonna): Documentation update## License
MIT Licensed