Skip to content

Commit 7012a57

Browse files
authored
configure karma to use chromium
1 parent 19f4ea4 commit 7012a57

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

karma.config.cjs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
process.env.CHROME_BIN = require('chromium').path
2+
13
module.exports = function (config) {
24
config.set({
35
frameworks: ['mocha', 'chai'],
46
files: [
5-
{pattern: 'dist/index.js', type: 'module'},
6-
{pattern: 'test/test.js', type: 'module'}
7+
{ pattern: 'dist/index.js', type: 'module' },
8+
{ pattern: 'test/test.js', type: 'module' }
79
],
810
reporters: ['mocha'],
911
port: 9876,
1012
colors: true,
1113
logLevel: config.LOG_INFO,
12-
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
14+
browsers: ['ChromeHeadless'],
1315
autoWatch: false,
1416
singleRun: true,
1517
concurrency: Infinity

0 commit comments

Comments
 (0)