custom-cornerstone-tools
Version:
Medical imaging tools for the Cornerstone library - customized for DrNuvem
47 lines (41 loc) • 1.12 kB
JavaScript
const path = require('path');
const outputPath = path.resolve(__dirname, 'dist');
const webpackConfig = require('./webpack.config.js');
// Deleting output.library to avoid "Uncaught SyntaxError: Unexpected token /" error
// when running testes (var test/foo_test.js = ...)
delete webpackConfig.output.library;
module.exports = function(config) {
config.set({
basePath: './',
singleRun: true,
browsers: ['PhantomJS'],
frameworks: ['mocha'],
reporters: ['progress', 'coverage'],
files: [
'test/*_test.js',
'test/**/*_test.js'
],
plugins: [
require('karma-webpack'),
require('karma-mocha'),
require('karma-phantomjs-launcher'),
require('karma-chrome-launcher')
],
preprocessors: {
'test/*_test.js': ['webpack'],
'test/**/*_test.js': ['webpack']
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: false,
// use stats to turn off verbose output
stats: {
// options i.e.
chunks: false,
colors: true,
timings: false,
errorDetails: true
}
}
});
};