occulto/.karma.cjs

22 lines
538 B
JavaScript
Raw Normal View History

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/**/*.js', type: 'module' },
{ pattern: 'test/**/*.js', type: 'module' },
],
browsers: ['ChromiumHeadless', 'FirefoxHeadless', 'WebKitHeadless'],
preprocessors: {},
reporters: ['progress'],
singleRun: false,
concurrency: Infinity,
})
}