Closed fisx closed 7 years ago
it's also possible that
rawJsRendering
would helpNope, I was pretty far off. The problem was that in foreign_
, we call a foreign function that looks up the argument in the global js variable window
, but when running the test suite on node, that fails.
I have made js_lookupWindow
account for both setups, and did a bit of refactoring during the investigation phase.
~HAVE:~
foreign_
element is rendered into aReactElementM
value at initialization time.~~WANT:~
mount
in https://github.com/airbnb/enzyme, we need access to the component, not an element derived from it.~(further investigation needed.)