dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonsrc/isomorphic/devtools/__tests__/ReactComponentTreeDevtool-test.js ModifiedM src/isomorphic/devtools/__tests__/ReactComponentTreeDevtool-test.native.js ModifiedA src/test/ReactComponentTreeTestUtils.js AddedPatch
Files changed
Rendering syntax-highlighted changes…