Knocks/FrontEnd/config/karma.conf.js

46 lines
1.1 KiB
JavaScript

var webpackConfig = require('./webpack.test');
module.exports = function (config) {
var _config = {
basePath: '',
frameworks: ['jasmine'],
files: [
{ pattern: './config/karma-test-shim.ts', watched: false },
{ pattern: './node_modules/@angular/material/prebuilt-themes/indigo-pink.css' }
],
preprocessors: {
'./config/karma-test-shim.ts': ['webpack', 'sourcemap']
},
mime: {
'text/x-typescript': ['ts','tsx']
},
webpack: webpackConfig,
webpackMiddleware: {
stats: 'errors-only'
},
webpackServer: {
noInfo: true
},
reporters: ['progress'],
// listenAddress: 'localhost',
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
// browsers: ['Chrome'],
singleRun: true,
plugings:[
require( 'karma-jasmine' )
// require( 'karma-phantomjs-launcher' ),
]
};
config.set(_config);
};