https://github.com/lemoncode/react-simple-testing
https://github.com/lemoncode/react-simple-testing
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lemoncode/react-simple-testing
- Owner: Lemoncode
- License: mit
- Created: 2017-11-16T15:53:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T09:56:04.000Z (almost 7 years ago)
- Last Synced: 2025-06-17T22:11:43.596Z (7 months ago)
- Language: TypeScript
- Size: 62.5 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React simple testing
Guide to add unit tests support to your React project (TypeScript based) using Karma + Chai + Mocha + Sinon.
Each sample contains a `README.md` file that indicates the purpose of the sample plus a step by step guide to reproduce it.
# Samples
## 00 Boilerplate
In this sample we are going to create basic project structure with all configuration for TypeScript, Webpack, Karma, Tslint, React-hot-loader, etc.
## 01 Login Component
In this sample we are going to create an app with `Login` component that navigate to other page. We are going to use [`lc-form-validation`](https://github.com/Lemoncode/lcFormValidation) to add login form validations.
## 02 Testing business logic
In this sample we are going to add unit tests. In this case, we will test all app business logic.
## 03 Testing components
In this sample we are going to add unit tests. In this case, we will test all necessary app components.
# About Basefactor + Lemoncode
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
[Basefactor, consultancy by Lemoncode](http://www.basefactor.com) provides consultancy and coaching services.
[Lemoncode](http://lemoncode.net/services/en/#en-home) provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend