1 const karmaJasmine = require('karma-jasmine');
2 const karmaWebpack = require('karma-webpack');
3 const karmaChromeLauncher = require('karma-chrome-launcher');
4 const { chromium } = require('playwright');
5 process.env.CHROME_BIN = chromium.executablePath();
7 module.exports = (config) => {
10 frameworks: ['jasmine', 'webpack'],
11 plugins: [karmaJasmine, karmaWebpack, karmaChromeLauncher],
12 files: ['test/index.spec.js'],
14 'test/index.spec.js': ['webpack'],
19 extensions: ['.js', '.ts', '.tsx'],
33 options: { transpileOnly: true },
36 exclude: /node_modules\/(?!.*(bip39|pmcrypto))/,
40 devtool: 'inline-source-map',
43 'text/x-typescript': ['ts', 'tsx'],
45 reporters: ['progress'],
48 logLevel: config.LOG_INFO,
52 base: 'ChromeHeadless',
53 flags: ['--no-sandbox'],
56 browsers: ['ChromeHeadlessCI'],
58 concurrency: Infinity,