karma-riot icon indicating copy to clipboard operation
karma-riot copied to clipboard

Broken example

Open StarpTech opened this issue 7 years ago • 0 comments

You have to include expect.js in the karma files to expose it as global.

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'riot'],
    plugins: [
      'karma-mocha',
      'karma-mocha-reporter',
      'karma-phantomjs-launcher',
      'karma-riot'
    ],
    files: [
      '**/*.tag',
      'test/**/*.js',
      'node_modules/expect.js/index.js'
    ],
    preprocessors: {
      '**/*.tag': ['riot']
    },
    browsers: ['PhantomJS'],
    reporters: ['mocha']
  })
}

StarpTech avatar Jul 14 '17 14:07 StarpTech