Skip to content

Commit ac33002

Browse files
authored
Merge pull request #460 from coderoad/feature/docs-test-a-test
add test-a-test example
2 parents ac6b57b + 49b44ff commit ac33002

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/docs/test-examples.md

+4
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ Test shallow renders with @testing-library/react.
4646
Eg. [setup: working message form input · ShMcK/coderoad-tutorial-tweeter@1c248ff · GitHub](https://github.com/ShMcK/coderoad-tutorial-tweeter/commit/1c248ff9846c5a27c12a2cbbb77cab1d66613be4)
4747
You can also test hooks with @testing-library/react-hooks
4848
Eg. [setup: useText hook refactor · ShMcK/coderoad-tutorial-tweeter@71deafa · GitHub](https://github.com/ShMcK/coderoad-tutorial-tweeter/commit/71deafa34fb0c271e57fb1749df184c0df3bcd8b)
49+
50+
### Testing a Test 🤯
51+
52+
It's even possible to write tests for tests. The trick is to mock the solution, and run the tests. [Eg Test a Test](https://github.com/ShMcK/test-a-test)

0 commit comments

Comments
 (0)