Test-Driven React 2: nextButton should be prevButton (page 76)

@TrevorBurnham

const nextButton = screen.getByTestId("prev-button");
Small copy paste error, apparently.

@TrevorBurnham

Same typo is also on page 109. Additionally, both next and previous tests have the same name.

Thanks so much for the report! I’ll get that fixed for the next release.

1 Like