Skip to content

Commit f98f3bb

Browse files
committed
[update] try to use firefox instead of puppeteer (it's so big)
1 parent 8916126 commit f98f3bb

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

karma.conf.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
process.env.CHROME_BIN = require('puppeteer').executablePath();
1+
// process.env.CHROME_BIN = require('puppeteer').executablePath();
22
const { version, name } = require('./package.json');
33
const { camelize } = require('toxic-utils');
44

@@ -95,7 +95,14 @@ module.exports = function(config) {
9595

9696
// start these browsers
9797
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
98-
browsers: [ 'ChromeHeadless' ],
98+
browsers: [ 'FirefoxHeadless' ],
99+
100+
customLaunchers: {
101+
FirefoxHeadless: {
102+
base: 'Firefox',
103+
flags: [ '-headless' ],
104+
},
105+
},
99106

100107
// Continuous Integration mode
101108
// if true, Karma captures browsers, runs the tests and exits

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"karma-chrome-launcher": "^2.2.0",
6565
"karma-coverage": "^1.1.1",
6666
"karma-coverage-istanbul-reporter": "^1.3.0",
67+
"karma-firefox-launcher": "^1.1.0",
6768
"karma-mocha": "^1.3.0",
6869
"karma-mocha-reporter": "^2.2.5",
6970
"karma-rollup-preprocessor": "^5.0.2",

tests/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('chimee-kernel base requirement', () => {
1111
videoElement = null;
1212
});
1313
it('isSupport', () => {
14-
expect(ChimeeKernelHls.isSupport()).to.equal(false);
14+
expect(ChimeeKernelHls.isSupport()).to.equal(true);
1515
});
1616
it('base method', () => {
1717
const config = {

0 commit comments

Comments
 (0)