React+TypeScript+TDD¶
React is wildly popular and thus wildly supported. TypeScript is increasingly popular, and thus increasingly supported.
The two together? Not as much. Given that they both change quickly, its hard to find accurate learning materials.
Adding in testing? Not so much. That three-part combination is the topic of this series. We’ll show a little about a lot. Meaning, the key steps to getting productive, in TDD, for React projects using TypeScript.
Code¶
The finished code for this tutorial step is on GitHub.
You can browse a rendered version of these docs at:
https://react-typescript-tdd.firebaseapp.com
- Project Setup
- Project Cleanup
- Styling with TSLint
- Unit Testing with Jest and Enzyme
- Debugging During Testing With NodeJS
- Debugging JSX With Chrome
- JSX and ES6
- Functional React Components in TypeScript
- Sharing Component Props Using Type Information
- Class Components With Props
- Model Class State With TypeScript Interfaces
- Rich Events and Testing
- Presentation and Container Components