Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit c111d09

Browse files
authored
configure karma to use chromium
1 parent b2692a0 commit c111d09

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/karma.config.cjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
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'}, {pattern: 'test.js', type: 'module'}],
6+
files: [
7+
{pattern: '../dist/index.js', type: 'module'},
8+
{pattern: 'test.js', type: 'module'}
9+
],
510
reporters: ['mocha'],
611
port: 9876,
712
colors: true,

0 commit comments

Comments
 (0)