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.
We are a team of long-term experienced freelance developers, established as a group in 2010. We specialize in Front End technologies and .NET. Click here to get more info about us.
For the LATAM/Spanish audience we are running an Online Front End Master degree, more info: http://lemoncode.net/master-frontend