Install enzyme

Fix #83
This commit is contained in:
Nicolas Gallagher
2016-06-23 13:50:06 -07:00
parent 37781171aa
commit 7f94c4bf06
2 changed files with 10 additions and 2 deletions
+9 -2
View File
@@ -1,6 +1,6 @@
var webpack = require('webpack')
const webpack = require('webpack')
var testEntry = 'tests.webpack.js'
const testEntry = 'tests.webpack.js'
module.exports = function (config) {
config.set({
@@ -30,6 +30,13 @@ module.exports = function (config) {
singleRun: true,
webpack: {
devtool: 'inline-source-map',
// required by 'enzyme'
externals: {
'cheerio': 'window',
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true
},
module: {
loaders: [
{