Skip to content

Commit

Permalink
chore: switch to chrome headless
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonslyvia committed Oct 19, 2017
1 parent 5edba66 commit d4fde73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ before_script:
- "sh -e /etc/init.d/xvfb start"
- sleep 3
addons:
firefox: "latest"
script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Firefox --single-run --no-auto-watch --capture-timeout 300000"
chrome: stable
script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Chrome --single-run --no-auto-watch --capture-timeout 300000"
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
},
"homepage": "https://github.com/jasonslyvia/react-lazyload",
"devDependencies": {
"prop-types": "^15.5.6",
"react-transition-group": "1.x",
"babel-cli": "^6.24.0",
"babel-core": "^6.24.0",
"babel-eslint": "^7.1.1",
Expand All @@ -47,17 +45,20 @@
"istanbul-instrumenter-loader": "^0.2.0",
"karma": "^0.13.22",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^0.5.5",
"karma-coveralls": "^1.1.2",
"karma-firefox-launcher": "^1.0.1",
"karma-mocha": "^0.2.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0",
"mocha": "^2.2.5",
"prop-types": "^15.5.6",
"react": "^16",
"react-dom": "^16",
"react-hot-loader": "~1.3.1",
"react-router": "^3",
"react-transition-group": "1.x",
"webpack": "~1.11.0",
"webpack-dev-server": "~1.10.1"
},
Expand Down
4 changes: 2 additions & 2 deletions test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function (config) {
'karma-coverage',
'karma-chai',
'karma-sourcemap-loader',
'karma-firefox-launcher',
'karma-chrome-launcher',
'istanbul-instrumenter-loader',
'karma-coveralls'
],
Expand Down Expand Up @@ -106,7 +106,7 @@ module.exports = function (config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Firefox'],
browsers: ['Chrome'],

browserNoActivityTimeout: 300000,
browserDisconnectTimeout: 300000,
Expand Down

0 comments on commit d4fde73

Please sign in to comment.