We use the following technologies in this chapter:
- Node.js and npm: TypeScript and React are dependent on these. Install them from the following link: https://nodejs.org/en/download/. If you already have these installed, make sure npm is at least version 5.2.
- Visual Studio Code: We'll need an editor to write our React and TypeScript code, which can be installed from https://code.visualstudio.com/. We'll also need the TSLint extension (by egamma) and the Prettier extension (by Estben Petersen).
- React shop: We'll be implementing unit tests on the React shop we created. This is available on GitHub at the following link: https://github.com/carlrip/LearnReact17WithTypeScript/tree/master/08-ReactRedux%EF%BB%BF.
- Chapter 9 code: We'll be implementing unit tests on the app we created in Chapter 9, Interacting with RESTful APIs. This is available on GitHub at the following link: https://github.com/carlrip/LearnReact17WithTypeScript/tree/master/09-RestfulAPIs/03-AxiosWithClass.
In order to restore code from a previous chapter, the LearnReact17WithTypeScript repository at https://github.com/carlrip/LearnReact17WithTypeScript can be downloaded. The relevant folder can then be opened in Visual Studio Code and npm install entered in the terminal to do the restore. All the code snippets in this chapter can be found online at the following link: https://github.com/carlrip/LearnReact17WithTypeScript/tree/master/11-UnitTesting.