Working With and Testing Using Component's Props
Learn how to test the React Component's props to test the components using the Enzyme's methods related to props.
We'll cover the following
Working with props
Currently, CarouselButton
renders an empty <button>
element, which isn’t very useful. We need to add support for setting the children
of the <button>
element, which will be the text that the user sees. Add a test for that to the existing describe()
block:
Get hands-on with 1400+ tech skills courses.