Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jest input value

let wrapped = mount(<Component />);
expect(wrapped.find("input").get(0).props.value).toEqual("something");
 
PREVIOUS NEXT
Tagged: #jest #input
ADD COMMENT
Topic
Name
2+8 =