js-waku/karma.conf.js

25 lines
628 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: {
2021-07-14 02:13:03 +00:00
tsconfig: './tsconfig.karma.json',
2021-07-14 01:40:15 +00:00
coverageOptions: {
instrumentation: false,
},
},
});
};