I’m following the instructions in the testing React, using enzyme, which is cool. But when I try to run the tests I get:
Unable to resolve some modules:
"react/addons" in
/Users/jherri1/projects/admiral2/node_modules/enzyme/build/react-compat.js
(web.browser)
"react/lib/ReactContext" in
/Users/jherri1/projects/admiral2/node_modules/enzyme/build/react-compat.js
(web.browser)
"react/lib/ExecutionEnvironment" in
/Users/jherri1/projects/admiral2/node_modules/enzyme/build/react-compat.js
(web.browser)
I’ve been looking around for solutions. On the webpack side there are solutions for adding externals, but on the Meteor side the question is left unanswered. Any way to add externals to the Meteor module loader?