dillon1000/react
Commit
Browse files Implement createNodeMock for ReactTestRenderer (#7649)
* Implement optional mockConfig and getMockRef * default mockConfig, walk render tree * Pass mockConfig to transaction * Attach mockConfig to transaction * type mockConfig in ReactRef * Expect object in native component ref test * Fix argument name for attachRefs * Add mockConfig support to legacy refs * Pass transaction to getPublicInstance * Implement getMockConfig on ReactTestReconcileTransaction * Merge defaultMockConfig and mockConfig options * Rename mockConfig to testOptions * Break getPublicInstnce into three lines * createMockRef -> createNodeMock
Changed paths9 files
First-parent comparisonsrc/renderers/shared/stack/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/stack/reconciler/ReactOwner.js ModifiedM src/renderers/shared/stack/reconciler/ReactReconciler.js ModifiedM src/renderers/shared/stack/reconciler/ReactRef.js ModifiedM src/renderers/shared/utils/CallbackQueue.js ModifiedM src/renderers/testing/ReactTestMount.js ModifiedM src/renderers/testing/ReactTestReconcileTransaction.js ModifiedM src/renderers/testing/ReactTestRenderer.js ModifiedM src/renderers/testing/__tests__/ReactTestRenderer-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…