1 const karmaJasmine
= require('karma-jasmine');
2 const karmaWebpack
= require('karma-webpack');
3 const karmaSpecReporter
= require('karma-spec-reporter');
4 const karmaChromeLauncher
= require('karma-chrome-launcher');
5 const { chromium
} = require('playwright');
6 process
.env
.CHROME_BIN
= chromium
.executablePath();
8 module
.exports
= (config
) => {
11 frameworks
: ['jasmine', 'webpack'],
12 plugins
: [karmaJasmine
, karmaWebpack
, karmaChromeLauncher
, karmaSpecReporter
],
13 files
: ['test/index.spec.js'],
15 'test/index.spec.js': ['webpack'],
20 extensions
: ['.js', '.ts', '.tsx'],
42 exclude
: /node_modules\/(?!.*pmcrypto)/,
45 test
: /\.(svg|woff|woff2|eot|ttf|otf|mp4|webm|pdf|csv)$/,
46 type
: 'asset/resource',
50 devtool
: 'inline-source-map',
53 'text/x-typescript': ['ts', 'tsx'],
58 logLevel
: config
.LOG_INFO
,
62 base
: 'ChromeHeadless',
63 flags
: ['--no-sandbox'],
66 browsers
: ['ChromeHeadlessCI'],
68 concurrency
: Infinity
,