First make sure you understand what these examples focus on. Then make the examples as concise as possible. Finally, try to communicate your intentions.
Here are the required steps for adding a foobar example in the jest-enzyme
collection.
- Put test(s) in
tests/jest-enzyme/foobar/test.js
- Put description in
tests/jest-enzyme/foobar/README.md
Get inspired from existing examples.
This one's a big deal so you want to start a conversation before jumping into it.
Copy one of the dirs from tests (eg. jest-rtl
) to get started. You don't have to mirror tests from existing collections. At least one test example is enough to create a new collection.
A few more steps required before deploying a new collection: