Skip to content

Commit cd30614

Browse files
committed
Run tests on jsdom instead of chrome browser
1 parent cc78f53 commit cd30614

File tree

4 files changed

+1046
-554
lines changed

4 files changed

+1046
-554
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ language: node_js
44
node_js:
55
- '10.14.2'
66
before_install:
7-
- export CHROME_BIN=/usr/bin/google-chrome
8-
- export DISPLAY=:99.0
9-
- sh -e /etc/init.d/xvfb start
10-
- sudo apt-get update
11-
- sudo apt-get install -y libappindicator1 fonts-liberation
12-
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
13-
- sudo dpkg -i google-chrome*.deb
147
after_script:
158
- npm install -g codeclimate-test-reporter
169
- codeclimate-test-reporter < ./coverage/lcov.info

karma.conf.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ module.exports = function(config) {
22
var configuration = {
33
basePath: '',
44
customLaunchers: {
5-
Chrome_travis_ci: {
6-
base: 'Chrome',
7-
flags: ['--no-sandbox']
8-
}
95
},
106
coverageReporter: {
117
type : 'lcovonly',
@@ -25,7 +21,7 @@ module.exports = function(config) {
2521
'karma-coverage',
2622
'karma-requirejs',
2723
'karma-jasmine',
28-
'karma-chrome-launcher'
24+
'karma-jsdom-launcher'
2925
],
3026
preprocessors: {
3127
'./build/**/*.js': 'coverage'
@@ -35,15 +31,11 @@ module.exports = function(config) {
3531
colors: true,
3632
logLevel: config.LOG_ERROR,
3733
autoWatch: false,
38-
browsers: ['Chrome'],
34+
browsers: ['jsdom'],
3935
singleRun: true,
4036
concurrency: Infinity
4137
};
4238

43-
if (process.env.TRAVIS) {
44-
configuration.browsers = ['Chrome_travis_ci'];
45-
}
46-
4739
if (process.argv.indexOf('-w') >= 0) {
4840
configuration.singleRun = false;
4941
configuration.autoWatch = true;

0 commit comments

Comments
 (0)