Skip to content

Commit 6932dd5

Browse files
authored
Merge pull request #4 from github/theinterned/install-chromium
Use chromium for karma tests
2 parents 150ba58 + 575ff21 commit 6932dd5

File tree

3 files changed

+442
-4528
lines changed

3 files changed

+442
-4528
lines changed

karma.config.cjs

Lines changed: 5 additions & 3 deletions
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)