Skip to content

Commit 57b131e

Browse files
authored
chore(test): fix testing on linux (#468)
Some systems require the CHROME_BIN env variable to be set for karma to hook into the chrome binary for testing. I noticed this while setting up karma-webpack on my linux desktop. Fixes N/A
1 parent 52ac365 commit 57b131e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"husky": "^0.14.3",
6363
"istanbul": "^0.4.5",
6464
"jest": "^23.5.0",
65-
"karma": "^6.0.0",
65+
"karma": "^6.0.3",
6666
"karma-chai": "^0.1.0",
6767
"karma-chrome-launcher": "^2.2.0",
6868
"karma-mocha": "^1.3.0",

test/integration/scenarios/basic-setup/basic-setup.test.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
/* eslint-disable prettier/prettier */
2+
23
import karmaChromeLauncher from 'karma-chrome-launcher';
34
import karmaMocha from 'karma-mocha';
45
import karmaChai from 'karma-chai';
56

67
import ScenarioUtils from '../../utils/ScenarioUtils';
78

9+
process.env.CHROME_BIN = require('puppeteer').executablePath();
10+
811
const path = require('path');
912

1013
const karmaWebpack = require('../../../../lib/index');

0 commit comments

Comments
 (0)