This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/karma.conf.js
2019-05-02 11:14:19 +09:00

44 lines
905 B
JavaScript

module.exports = function (config) {
var webpackConfig = require('./webpack.config.js');
config.set({
basePath: '',
frameworks: ['mocha', 'sinon'],
files: [
'test/main.ts',
'test/**/*.test.ts',
'test/**/*.test.tsx',
'test/**/*.html'
],
preprocessors: {
'test/main.ts': [ 'webpack', 'sourcemap' ],
'test/**/*.test.ts': [ 'webpack', 'sourcemap' ],
'test/**/*.test.tsx': [ 'webpack', 'sourcemap' ],
'test/**/*.html': ['html2js']
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
browsers: ['FirefoxHeadless'],
singleRun: true,
webpack: {
mode: 'development',
devtool: 'inline-source-map',
resolve: webpackConfig.resolve,
module: webpackConfig.module
},
webpackMiddleware: {
noInfo: true
},
reporters: ['mocha']
})
}