karma-as-promised

1.0.0 • Public • Published

karma-as-promised Build Status

A lightweight promise wrapper for Karma's public API. This wrapper will not replace or alter any of Karma's methods directly. Anywhere you would require('karma'), just require('karma-as-promised') instead. The configuration will be passed through directly.

When Karma reports an exit code of 0, the promise resolves. For any other code, it is rejected.

Example

require('karma-as-promised').server.start(config)
  .then(function () {
    // tests exited with code 0
  })
  .catch(function (err) {
    // err.message => Karma exited with code {code}
  });

Package Sidebar

Install

npm i karma-as-promised

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker