karma-brunch

1.0.6 • Public • Published

Build Status

karma-brunch

Adds karma support to brunch.

Usage

Install the plugin via npm with npm install --save karma-brunch.

Or, do manual install:

  • Add "karma-brunch": "~x.y.z" to package.json of your brunch app.
  • If you want to use git version of plugin, use the GitHub URI "karma-brunch": "denar90/karma-brunch".

And run brunch with the test environment. For instance brunch watch --env=test

Config example with karma

 
module.exports = {
  files: {
    javascripts: {
      joinTo: {
        'vendor.js': /^(?!app|test)/,
        'app.js': /^app/,
        'test.js': /^test/
      }
    },
    stylesheets: {joinTo: 'app.css'},
  },
  modules: {
    autoRequire: {
      'test.js': ['test/specs']
    }
  },
  plugins: {
    babel: {presets: ['es2015']},
    karma: {
      singleRun: true,
      browsers: ['PhantomJS'],
      frameworks: ['mocha', 'chai'],
      files: [
        "public/test.js"
      ]
    }
  }
};

Supported karma frameworks

License

The MIT License (MIT)

Readme

Keywords

none

Package Sidebar

Install

npm i karma-brunch

Weekly Downloads

15

Version

1.0.6

License

MIT

Last publish

Collaborators

  • denar90