Skip to content

Commit 21a8ee9

Browse files
build: use chrome not headless
1 parent ab5dbf3 commit 21a8ee9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

karma.conf.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Karma configuration
22
// Generated on Fri Jan 15 2016 13:36:31 GMT-0500 (EST)
33
'use strict';
4+
const path = require('path');
45

56
var testServer;
67
if (process.env.TEST_MODE === 'integration') {
@@ -44,10 +45,10 @@ module.exports = function(config) {
4445
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
4546
logLevel: config.LOG_INFO,
4647
// enable / disable watching file and executing tests whenever any file changes
47-
autoWatch: true,
48+
autoWatch: false,
4849
// start these browsers
4950
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
50-
browsers: ['ChromeWithPrerecordedMic', 'FirefoxAutoGUM'],
51+
browsers: ['FirefoxAutoGUM'],
5152
// you can define custom flags
5253
// there's a handy list of chrome flags at
5354
customLaunchers: {
@@ -57,7 +58,7 @@ module.exports = function(config) {
5758
flags: [
5859
'--use-fake-device-for-media-stream',
5960
'--use-fake-ui-for-media-stream',
60-
'--use-file-for-fake-audio-capture=test/resources/audio.wav',
61+
'--use-file-for-fake-audio-capture=' + path.join(__dirname, 'test/resources/audio.wav'),
6162
'--no-sandbox'
6263
]
6364
},

0 commit comments

Comments
 (0)