You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,8 @@ Start by understanding the ubiquitous testing practices that are the foundation
19
19
20
20
### Written By Yoni Goldberg
21
21
* A JavaScript & Node.js consultant
22
-
*👨🏫 [My testing workshop](https://www.testjavascript.com) - learn about [my workshops](https://www.testjavascript.com) in Europe & US
22
+
*📗 [Testing Node.js & JavaScript From A To Z](https://www.testjavascript.com) - My comprehensive online course with more than [10 hours of video](https://www.testjavascript.com), 14 test types and more than 40 best practices
23
23
*[Follow me on Twitter ](https://twitter.com/goldbergyoni/)
24
-
*[My JavaScript Quality newsletter](https://testjavascript.com/newsletter/) - insights and content only on strategic matters
25
24
26
25
<br/>
27
26
@@ -347,6 +346,12 @@ it("When a valid product is about to be deleted, ensure an email is sent", async
347
346
348
347
<br/><br/>
349
348
349
+
## 📗 Want to learn all these practices with live video?
350
+
351
+
### Visit my online course [Testing Node.js & JavaScript From A To Z](https://www.testjavascript.com)
352
+
353
+
<br/><br/>
354
+
350
355
## ⚪ ️1.6 Don’t "foo", use realistic input data
351
356
352
357
:white_check_mark:**Do:** Often production bugs are revealed under some very specific and surprising input — the more realistic the test input is, the greater the chances are to catch bugs early. Use dedicated libraries like [Faker](https://www.npmjs.com/package/faker) to generate pseudo-real data that resembles the variety and form of production data. For example, such libraries can generate realistic phone numbers, usernames, credit card, company names, and even ‘lorem ipsum’ text. You may also create some tests (on top of unit tests, not as a replacement) that randomize fakers data to stretch your unit under test or even import real data from your production environment. Want to take it to the next level? See the next bullet (property-based testing).
@@ -1811,9 +1816,8 @@ An efficient update policy may allow some ‘vesting period’ — let the c
1811
1816
1812
1817
**About:** I'm an independent consultant who works with 500 fortune corporates and garage startups on polishing their JS & Node.js applications. More than any other topic I'm fascinated by and aims to master the art of testing. I'm also the author of [Node.js Best Practices](https://github.com/goldbergyoni/nodebestpractices)
1813
1818
1814
-
<br/>
1819
+
**📗 Online Course:** Liked this guide and wish to take your testing skills to the extreme? Consider visiting my comprehensive course [Testing Node.js & JavaScript From A To Z](https://www.testjavascript.com)
1815
1820
1816
-
**Workshop:** 👨🏫 Want to learn all these practices and techniques at your offices (Europe & USA)? [Register here for my testing workshop](https://testjavascript.com/)
0 commit comments