https://github.com/lemoncode/react-testing-excercise
https://github.com/lemoncode/react-testing-excercise
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lemoncode/react-testing-excercise
- Owner: Lemoncode
- License: mit
- Created: 2019-07-24T18:54:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T15:02:43.000Z (over 6 years ago)
- Last Synced: 2025-06-17T22:11:36.129Z (about 1 year ago)
- Language: TypeScript
- Size: 1.09 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# react-testing-excercise
## Intro
The goal of this excercise is add all necessary tests and testing configuration.
## Excercise
- Install all necessary libs for testing.
- Add `jest` configuration.
- Add `debug` configuration.
- Add mapper tests (`common/mappers/collection.mapper.ts`, `pods/hotel-collection/hotel-collection.mapper.ts`).
- Add `common/components` tests.
- Add `pods/hotel-collection/hotel-collection.hook.ts` tests.
- Add components and containers tests inside pods. (login and hotel-collection)
## Optional
- Add `coverage` configuration.
- Add `travis-ci` or `circle-ci` configuration.
- Move some pod to redux and test:
- `reducers`
- `actions`
- `sagas`
- `selectors`
- `containers`
## Important
- When configure `jest.json` file, add `alias` configuration using:
```javascript
{
"rootDir": "../../",
...
"moduleDirectories": ["/src", "node_modules"],
}
```
# 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