js-waku/karma.conf.js

29 lines
747 B
JavaScript
Raw Normal View History

process.env.CHROME_BIN = require('puppeteer').executablePath();
2021-07-14 01:40:15 +00:00
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
files: ['src/lib/**/*.ts', 'src/proto/**/*.ts'],
2021-07-14 01:40:15 +00:00
preprocessors: {
'**/*.ts': ['karma-typescript'],
},
plugins: [
require('karma-mocha'),
require('karma-typescript'),
require('karma-chrome-launcher'),
],
reporters: ['progress', 'karma-typescript'],
2021-07-14 05:17:16 +00:00
browsers: ['ChromeHeadless'],
2021-07-14 01:40:15 +00:00
singleRun: true,
karmaTypescriptConfig: {
bundlerOptions: {
entrypoints: /.*\.browser\.spec\.ts$/,
},
2021-07-14 02:13:03 +00:00
tsconfig: './tsconfig.karma.json',
2021-07-14 01:40:15 +00:00
coverageOptions: {
instrumentation: false,
},
},
});
};