Skip to content

Commit

Permalink
[TASK] Run phantomjs via karma instead of chrome since a headless bro…
Browse files Browse the repository at this point in the history
…wser is better suited for CI envs #18
  • Loading branch information
Inkdpixels committed Feb 2, 2016
1 parent 56b7483 commit 00aed62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 7 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ webpackConfig.module.loaders.push({

module.exports = function (config) {
config.set({
browsers: ['Chrome'],
browsers: ['PhantomJS'],
singleRun: Boolean(process.env.CONTINUOUS_INTEGRATION),
frameworks: ['mocha', 'sinon-chai'],
files: [filePattern],
files: [
'./node_modules/phantomjs-polyfill/bind-polyfill.js',
'./node_modules/babel-polyfill/browser.js',
filePattern
],
plugins: [
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-chai',
'karma-sinon-chai',
'karma-mocha',
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"babel-loader": "^6.2.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.3.13",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
Expand All @@ -25,14 +26,16 @@
"istanbul-instrumenter-loader": "^0.1.3",
"karma": "^0.13.19",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^0.2.2",
"karma-coverage": "^0.5.3",
"karma-mocha": "^0.2.1",
"karma-mocha-reporter": "^1.1.5",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sinon-chai": "^1.1.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0",
"mocha": "^2.4.5",
"phantomjs-polyfill": "0.0.1",
"phantomjs-prebuilt": "^2.1.3",
"postcss-hexrgba": "^0.2.0",
"postcss-import": "^7.1.3",
"postcss-loader": "^0.8.0",
Expand Down

0 comments on commit 00aed62

Please sign in to comment.