occulto/.karma.cjs
2022-10-18 14:08:27 +02:00

22 lines
542 B
JavaScript

module.exports = function (config) {
config.set({
frameworks: ['mocha'],
plugins: ['karma-mocha', '@endyjasmi/karma-playwright-launcher'],
basePath: '',
files: [
{ pattern: 'node_modules/chai/chai.js', type: 'module' },
{ pattern: 'dist/esm/**/*.js', type: 'module' },
{ pattern: 'test/**/*.js', type: 'module' },
],
browsers: ['ChromiumHeadless', 'FirefoxHeadless', 'WebKitHeadless'],
preprocessors: {},
reporters: ['progress'],
singleRun: false,
concurrency: Infinity,
})
}