mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
Fix createNodeMock doc to avoid Invariant Violation (#8989)
This commit is contained in:
@@ -75,6 +75,7 @@ import renderer from 'react-test-renderer';
|
||||
function createNodeMock(element) {
|
||||
if (element.type === 'input') {
|
||||
return {
|
||||
nodeType: 1,
|
||||
focus() {},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user