HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-02-21
1 <p>Testing is a big topic with lots of nuances. Testing pure functions is one thing, but testing an application with database interaction, sending network queries, emails, and using timers and asynchrony is another. Even error testing has its own peculiarities.</p>
1 <p>Testing is a big topic with lots of nuances. Testing pure functions is one thing, but testing an application with database interaction, sending network queries, emails, and using timers and asynchrony is another. Even error testing has its own peculiarities.</p>
2 <p>By organizing these tests properly, maintaining them won't be too difficult, and you'll be able to work much faster. If it's done wrong, however, it's very easy to fall into the trap of seemingly having tests, but they're hard to write, keep breaking, and you have to rewrite them often.</p>
2 <p>By organizing these tests properly, maintaining them won't be too difficult, and you'll be able to work much faster. If it's done wrong, however, it's very easy to fall into the trap of seemingly having tests, but they're hard to write, keep breaking, and you have to rewrite them often.</p>
3 <p>This course is about how to test complex situations with side effects, and asynchronous code, including code bound to timers. Main topics:</p>
3 <p>This course is about how to test complex situations with side effects, and asynchronous code, including code bound to timers. Main topics:</p>
4 <ul><li>Error Testing. Snapshot tests.</li>
4 <ul><li>Error Testing. Snapshot tests.</li>
5 <li>Fixtures. Organizing test data.</li>
5 <li>Fixtures. Organizing test data.</li>
6 <li>Isolating side effects. Stubs. Dependency inversion.</li>
6 <li>Isolating side effects. Stubs. Dependency inversion.</li>
7 <li>Moki. Black box testing.</li>
7 <li>Moki. Black box testing.</li>
8 <li>Timers. Time management.</li>
8 <li>Timers. Time management.</li>
9 <li>Testing asynchronous code.</li>
9 <li>Testing asynchronous code.</li>
10 </ul><h2>Further reading</h2>
10 </ul><h2>Further reading</h2>
11 <p>Since this is an advanced testing course, it expects a certain amount of knowledge on your part. Below is a list of what you might need in different lessons to fully understand them:</p>
11 <p>Since this is an advanced testing course, it expects a certain amount of knowledge on your part. Below is a list of what you might need in different lessons to fully understand them:</p>
12 <ul><li>Modules for working with the file system:<a>fs</a>,<a>path</a></li>
12 <ul><li>Modules for working with the file system:<a>fs</a>,<a>path</a></li>
13 </ul>
13 </ul>