mirror of https://github.com/linkerd/linkerd2.git
				
				
				
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			578 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			578 B
		
	
	
	
		
			JavaScript
		
	
	
	
// use the same babel compilation etc. as what's defined in the webpack config
 | 
						|
var webpackConfig = require('./webpack.config.js');
 | 
						|
 | 
						|
// Karma configuration
 | 
						|
module.exports = function(config) {
 | 
						|
  config.set({
 | 
						|
    basePath: '',
 | 
						|
    frameworks: ['mocha', 'sinon-chai'],
 | 
						|
    files: [
 | 
						|
      { pattern: 'test/*.+(js|jsx)', watched: false }, // all js, jsx files in "test/"
 | 
						|
    ],
 | 
						|
    preprocessors: {
 | 
						|
      'test/*.+(js|jsx)': ['webpack']
 | 
						|
    },
 | 
						|
    reporters: ['nyan'],
 | 
						|
    browsers: ['jsdom'],
 | 
						|
    webpack: webpackConfig,
 | 
						|
    webpackMiddleware: {
 | 
						|
      stats: 'normal'
 | 
						|
    }
 | 
						|
  });
 | 
						|
};
 |