Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac33002

Browse files
authored
Merge pull request#460 from coderoad/feature/docs-test-a-test
add test-a-test example
2 parentsac6b57b +49b44ff commitac33002

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎docs/docs/test-examples.md

Lines changed: 4 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp