Skip to content

Commit d3ddfaf

Browse files
authored
configure karma to use chromium
1 parent 26d4d1a commit d3ddfaf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/karma.config.cjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
module.exports = function(config) {
1+
process.env.CHROME_BIN = require('chromium').path
2+
3+
module.exports = function (config) {
24
config.set({
35
frameworks: ['mocha', 'chai'],
4-
files: [{pattern: '../dist/index.js', type: 'module'}, 'test.js'],
6+
files: [{ pattern: '../dist/index.js', type: 'module' }, 'test.js'],
57
reporters: ['mocha'],
68
port: 9876,
7-
client: {mocha: {ui: 'tdd'}},
9+
client: { mocha: { ui: 'tdd' } },
810
colors: true,
911
logLevel: config.LOG_INFO,
10-
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
12+
browsers: ['ChromeHeadless'],
1113
autoWatch: false,
1214
singleRun: true,
1315
concurrency: Infinity

0 commit comments

Comments
 (0)