Creating NPM Package with React TypeScript
/
Testing React Component
Testing React Component
https://leanpub.com/creating-npm-package-with-react-typescript
1. Install the Testing Tools
https://leanpub.com/creating-npm-package-with-react-typescript
2. Specify Jest as Your Project’s Test Runner Tool
https://leanpub.com/creating-npm-package-with-react-typescript
3. Configure Jest to Test TypeScript Code
https://leanpub.com/creating-npm-package-with-react-typescript
4. Configure Jest to Compile TypeScript Files
https://leanpub.com/creating-npm-package-with-react-typescript
5. Configure Jest’s Testing Environment
https://leanpub.com/creating-npm-package-with-react-typescript
6. Create Your Code Files
https://leanpub.com/creating-npm-package-with-react-typescript
7. Write Your Test Case
https://leanpub.com/creating-npm-package-with-react-typescript
8. Develop Your React Component
https://leanpub.com/creating-npm-package-with-react-typescript
9. Run the Test
https://leanpub.com/creating-npm-package-with-react-typescript
Up next
Commit Message Configuration
In this chapter
Testing React Component
1. Install the Testing Tools
2. Specify Jest as Your Project’s Test Runner Tool
3. Configure Jest to Test TypeScript Code
4. Configure Jest to Compile TypeScript Files
5. Configure Jest’s Testing Environment
6. Create Your Code Files
7. Write Your Test Case
8. Develop Your React Component
9. Run the Test