dillon1000/react

Commit

Refactor ReactComponentTreeDevtool test

We extract common logic between DOM and native tests so they don't diverge.

Also, rather than build a tree object in advance for testing, we will walk the tree on the go.
This lets us have much more specific error messages with a clear path when something goes wrong.
Browse files
Changed paths3 files
First-parent comparison
M src/isomorphic/devtools/__tests__/ReactComponentTreeDevtool-test.js ModifiedM src/isomorphic/devtools/__tests__/ReactComponentTreeDevtool-test.native.js ModifiedA src/test/ReactComponentTreeTestUtils.js Added
Patch

Files changed

Rendering syntax-highlighted changes…