Jest testing by sample
Learn testing with jest + typescript by example, each of the examples contains a readme.md file that indicates the purpose of the sample plus an step by step guide to reproduce it.
Example projects are located under the frontend folder, each sample covers a testing topic and includes and step by step guide.
How to run the sample projects:
Jump into frontend folder:
cd frontend
Then jump into one of the examples folder you want to run, e.g. 02 PlainVanilla
cd "02 PlainVanilla"
Now you can execute the tests by launching:
npm test
You can start the project by executing:
npm start
Each sample contains a Readme.md that contains the step by step guide to reproduce the sample.
Examples description:
- 00 Boilerplate: Initial application.
- 01 Add config: Setting up Jest from scratch.
- 02 Plain Vanilla: Testing plain vanilla javascript code with Jest.
- 03 Debugging Jest: How to debug jest test using Visual Studio Code.
- 04 Redux Actions: How to test actions, plus thunk based actions using Jest.
- 05 Redux Reducers: How to test reducers.
- 06 Components: How to test components using jests.
- 07 Code Coverage: How to enable code coverage reports on our tests run.
- 08 Reselect: How to test a reselect selector_.
- 09 Travis CI: How to integrate our tests with a CI provider like Travis.
About Basefactor + Lemoncode
We are an innovating team of Javascript experts, passionate about turning your ideas into robust products.
Basefactor, consultancy by Lemoncode provides consultancy and coaching services.
Lemoncode provides training services.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend