Another TypeScript “Testing Without Mocks” Example

Following on the heels of the simple “Testing Without Mocks” TypeScript example I released earlier this week, I’ve now made the complex example available in TypeScript as well.

This example shows the “Testing Without Mocks” patterns in a real-world environment. It has two servers (a web server and a microservice), logging, correlation IDs, error handling, timeouts, and request cancellation. Almost everything is implemented from scratch, with thorough documentation, allowing you to trace through the code to see how it works.

(For those of you who prefer JavaScript, the same example is also available in JavaScript.)

To learn more about the “Testing Without Mocks” patterns, see the Nullables hub.

If you liked this entry, check out my best writing and presentations, and consider subscribing to updates by email or RSS.