Chirag Rupani·Jul 2, 2018Writing unit tests in TypeScriptIn this story, we would be using TypeScript for unit testing along with popular frameworks: Mocha/Chai, Jasmine or Jest. You have decided the framework and want to write unit tests in TypeScript, Great! We would walk through changes required to support unit tests in TypeScript. If not, documentation of each…Java Script4 min read
Sudarsan BalajiinThe Journal of Artful Development·Oct 7, 2016Write tests for TypeScript projects with mocha and chai — in TypeScript!UPDATE: There’s a newer version of this post, with more details and solutions. It’s advisable to head there instead. The contents of this post may be outdated and the solutions posted here may no longer work. TypeScript is something I’m crazy about, and I recently started a project in TypeScript…Java Script3 min read
Sudarsan BalajiinThe Journal of Artful Development·Sep 25, 2017Unit testing node applications with TypeScript — using mocha and chaiTypeScript has gotten so much better in the last year, and so many new applications and projects are built on top its awesomeness. Its first-class integration and support in Visual Studio Code helps a lot, and I think TypeScript as a language is here to stay, despite some people having…Java Script6 min read
John Au-YeunginLevel Up Coding·Jun 9, 2020TypeScript Best Practices — Semicolons and SpacingTypeScript is an easy to learn extension of JavaScript. It’s easy to write programs that run and does something. However, it’s hard to account for all the uses cases and write robust TypeScript code. In this article, we’ll look at the best practices to following when writing code with TypeScript…Programming3 min read