wayfair-archive / awesome-learning-exercises

Awesome Learning Exercises - the source code for the Awesome Learning platform.
https://wayfair.github.io/awesome-learning/
BSD 2-Clause "Simplified" License
15 stars 19 forks source link

Create React Testing Library exercises in Testing course #33

Closed helloitsjoe closed 4 years ago

helloitsjoe commented 5 years ago

We currently only teach Enzyme in our testing course - we talked about replacing Enzyme with RTL, but we could have exercises for both libraries in the course, teaching similar concepts and maybe mirroring the lessons:

1-components-elements.test.js
2a-using-enzyme.test.js
2b-using-react-testing-library.test.js
3a-user-interaction-enzyme.test.js
3b-user-interaction-react-testing-library.test.js
helloitsjoe commented 5 years ago

After talking about this, we've decided to create two separate folders for Enzyme and RTL, with a little duplication (1-components-elements.test.js will be the same in both folders). Something like this:

awesome-learning-exercises
  testing
    intro-to-unit-testing
      ...
    component-testing-enzyme
      1-components-elements.test.js
      2-using-enzyme.test.js
      3-user-interaction-enzyme.test.js
    component-testing-react-testing-library
      1-components-elements.test.js
      2-using-react-testing-library.test.js
      3-user-interaction-react-testing-library.test.js

Or maybe we pull 1-components-elements.test.js into its own folder, intro-to-component-testing

helloitsjoe commented 5 years ago

This issue is in progress!