Skip to content

Commit

Permalink
Merge pull request remix-run#255 from KidkArolis/improve-karma-conf
Browse files Browse the repository at this point in the history
Improve karma conf
  • Loading branch information
mjackson committed Sep 1, 2014
2 parents 96122dd + ed0b54b commit e57112e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
17 changes: 3 additions & 14 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ module.exports = function(config) {
exclude: [],

preprocessors: {
'specs/main.js': ['webpack']
'specs/main.js': ['webpack', 'sourcemap']
},

webpack: {
cache: true,
// TODO: figure out how to get source maps in here, none of this works
//devtool: {
//'inline-source-map': true,
//inlineSourceMap: true
//},
devtool: 'inline-source-map',
module: {
loaders: [
{test: /\.js$/, loader: 'jsx-loader'}
Expand Down Expand Up @@ -49,13 +45,6 @@ module.exports = function(config) {

captureTimeout: 60000,

singleRun: false,

plugins: [
require("karma-mocha"),
require("karma-chrome-launcher"),
require("karma-firefox-launcher"),
require("karma-webpack")
]
singleRun: false
});
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"karma-cli": "0.0.4",
"karma-firefox-launcher": "0.1.3",
"karma-mocha": "0.1.3",
"karma-sourcemap-loader": "^0.2.0",
"karma-webpack": "1.2.1",
"mocha": "1.20.1",
"react": ">=0.11.0",
Expand Down

0 comments on commit e57112e

Please sign in to comment.