Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get input with name in jest test

const { container } = render(<MyComponent />);
const inputEl = container.querySelector(`input[name="userName"]`);
 
PREVIOUS NEXT
Tagged: #input #jest #test
ADD COMMENT
Topic
Name
4+3 =