Skip to content

Commit

Permalink
Update test browsers and add nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jforbes committed Jan 17, 2018
1 parent 6efc580 commit e4c1a5c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
sudo: required
dist: trusty
language: node_js
node_js:
- 8
addons:
chrome: stable
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-detect-browsers": "^2.0.0",
"karma-firefox-launcher": "^0.1.0",
"karma-firefox-launcher": "^1.1.0",
"karma-ie-launcher": "^0.2.0",
"karma-qunit": "^1.2.1",
"karma-safari-launcher": "^0.1.0",
Expand Down
8 changes: 7 additions & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(config) {
};

if (process.env.TRAVIS) {
config.browsers = ['ChromeHeadless'];
config.browsers = ['ChromeHeadlessNoSandbox'];
}

// If no browsers are specified, we enable `karma-detect-browsers`
Expand All @@ -44,6 +44,12 @@ module.exports = function(config) {
level: 'error',
terminal: false
},
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
preprocessors: {
'test/**/*.test.js': ['browserify']
},
Expand Down

0 comments on commit e4c1a5c

Please sign in to comment.