Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

r3Fuze/simple-karma-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-karma-wrapper

A super simple wrapper around Karma

This is very hacky and will fail if used incorrectly, I mostly built this for myself

build status

Installation

This module is installed via npm:

$ npm install simple-karma-wrapper

API

start(configFile, options, callback)

configFile

Type: Sting

Default: karma.conf.js

The path to your karma config file

options

Type: Object

Default: {}

Options to pass into karma

callback

Type: Function

Optional callback to run when karma is finished. Useful for gulp

run(config, callback)

config

Type: Object

Default: {}

Options to pass into karma

callback

Type: Function

Optional callback to run when karma is finished. Useful for gulp

Example Usage

var simpleKarmaWrapper = require('simple-karma-wrapper');

simpleKarmaWrapper.start("karma.conf.js", { port: 9879 }, callback);

simpleKarmaWrapper.run(callback);

About

A super simple wrapper around Karma

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published