This chapter explains how to build and test a TypeScript library that may be reused in several projects. This chapter also introduces Visual Studio Code (VS Code), which is an advanced code editor powered with IntelliSense and debugging. VS Code is more flexible than the predefined Visual Studio project templates when working with TypeScript/JavaScript projects. Finally, the chapter shows how to use a well-known TypeScript/JavaScript testing framework—Jasmine.
More specifically, the following topics will be covered in the chapter:
- How to use VS Code
- How to write and package a TypeScript library with VS Code
- How to set up a testing environment based on Jasmine
- How to organize, write, and launch tests based on Jasmine