metamaps--metamaps/webpack.test.config.js
Devin Howard edce66c44d new react tests with enzyme library (#1116)
* move ImportDialogBox into a folder

* install enzyme

* start testing InfoAndHelp component

* add star logic to tests

* switch ImportDialogBox to using enzyme but tests are still failing

* make `npm run test` work

* tests pass again

* eslint

* try to fix travis by adding react-addons-test-utils again

* eslintrc for test dir

* remove duplicated code

* fix

* try to suppress 2 warnings
2017-05-13 13:50:52 -04:00

15 lines
328 B
JavaScript

const config = require('./webpack.config')
config.target = 'node'
config.externals = config.externals.concat([
'react/lib/ExecutionEnvironment',
'react/lib/ReactContext',
'react/addons',
'react-test-renderer/shallow',
'react-dom/test-utils',
'canvas',
'bufferutil',
'utf-8-validate'
])
module.exports = config