Skip to content

Commit

Permalink
feat(test.config): setup webpack to use enzyme
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-le-singe committed Sep 7, 2016
1 parent b85cf9c commit b8ae060
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions webpack/test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ const config = {
devtool: 'inline-source-map',
resolve: {
root: [srcDir],
extensions: ['', '.js', '.jsx']
extensions: ['', '.js', '.jsx', '.json'],
alias: {
sinon: 'sinon/pkg/sinon'
}
},
module: {
noParse: [
/\/sinon\.js/
],
loaders: [
{
test: /\.js$/,
Expand Down Expand Up @@ -84,7 +90,12 @@ const config = {
__PROD__,
__DEBUG__
})
]
],
externals: {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true
}
}

export default config

0 comments on commit b8ae060

Please sign in to comment.