Skip to content

Commit

Permalink
refactor(enzyme): Moved tests of RefinementList component to enzyme
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Mar 24, 2016
1 parent 0bc1991 commit ab329f5
Show file tree
Hide file tree
Showing 4 changed files with 391 additions and 140 deletions.
96 changes: 95 additions & 1 deletion npm-shrinkwrap.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"conventional-changelog": "^0.5.3",
"dmd": "^1.3.8",
"doctoc": "^1.0.0",
"enzyme": "2.2.0",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^0.1.0",
"eslint-config-algolia": "^4.5.0",
Expand Down
9 changes: 9 additions & 0 deletions scripts/karma.conf.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ let baseConfig = {
loaders: [{
test: /\.js$/, exclude: /node_modules/, loader: 'babel'
}]
},
// enzyme does not work well with webpack:
// https://github.com/airbnb/enzyme/issues/47#issuecomment-165430136
externals: {
jsdom: 'window',
cheerio: 'window',
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': 'window',
'text-encoding': 'window'
}
},
webpackMiddleware: {noInfo: true}
Expand Down
Loading

0 comments on commit ab329f5

Please sign in to comment.