TypeScript Testing Tips – Creating Dummies
See the original posting on DZone Python
This is the first post in a series on using TypeScript in practical applications. It shows a simple TypeScript pattern for building type-safe, unit test dummies. The focus is on simplicity for the consumer so tests emphasize what’s important and avoid incidental details.
At Instil, weâre big fans of TypeScript. Although we appreciate the strengths of dynamic languages, all things considered, strong static typing wins more often than not.