Skip to content

Commit a76615b

Browse files
authored
Merge pull request #39 from github/theinterned/install-chromium
Use chromium for karma tests
2 parents 4ae6175 + f485d9c commit a76615b

File tree

5 files changed

+407
-3
lines changed

5 files changed

+407
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Node CI
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- main
77
jobs:
88
build:
99
runs-on: ${{ matrix.os }}

karma.config.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
process.env.CHROME_BIN = require('chromium').path
2+
13
module.exports = function(config) {
24
config.set({
35
frameworks: ['mocha', 'chai'],
4-
files: [{pattern: 'dist/index.js', type: 'module'}, {pattern: 'test/test.js', type: 'module'}],
6+
files: [
7+
{pattern: 'dist/index.js', type: 'module'},
8+
{pattern: 'test/test.js', type: 'module'}
9+
],
510
reporters: ['mocha'],
611
port: 9876,
712
colors: true,

0 commit comments

Comments
 (0)