js-waku/karma.conf.js

25 lines
626 B
JavaScript
Raw Normal View History

2021-07-14 01:40:15 +00:00
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
files: [{ pattern: 'src/**/*browser.spec.ts' }],
preprocessors: {
'**/*.ts': ['karma-typescript'],
},
plugins: [
require('karma-mocha'),
require('karma-typescript'),
require('karma-chrome-launcher'),
],
logLevel: config.LOG_DEBUG,
reporters: ['progress', 'karma-typescript'],
browsers: ['Chromium'],
singleRun: true,
karmaTypescriptConfig: {
tsconfig: './tsconfig.dev.json',
coverageOptions: {
instrumentation: false,
},
},
});
};