Skip to content

Commit

Permalink
Merge pull request #24 from github/theinterned/install-chromium
Browse files Browse the repository at this point in the history
Use chromium for karma tests
  • Loading branch information
theinterned authored Feb 16, 2022
2 parents 79f0709 + aef9656 commit 0c6d422
Show file tree
Hide file tree
Showing 3 changed files with 466 additions and 20 deletions.
7 changes: 6 additions & 1 deletion karma.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
process.env.CHROME_BIN = require('chromium').path

module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai'],
files: [{pattern: 'dist/index.js', type: 'module'}, {pattern: 'test/test.js', type: 'module'}],
files: [
{pattern: 'dist/index.js', type: 'module'},
{pattern: 'test/test.js', type: 'module'}
],
reporters: ['mocha'],
port: 9876,
colors: true,
Expand Down
Loading

0 comments on commit 0c6d422

Please sign in to comment.