Testing guidelines by language
React
- Use Jest along with enzyme library in order to make efficient reducer and component tests.
- Each test should live in each component directory and should have the name of the component plus
.test.js
.
- We use the
expect
module from chai in order to compare values.
- We use shallow rendering in order to test React components in an efficient way.
Angular
- We suggest use the following libraries:
- Jasmine: Useful development framework for testing JavaScript code.
- Sinon: Standalone test spies, stubs and mocks for JavaScript.
- Each test should live in each component directory and should have the name of the component plus
.test.js
.
- We use the
expect
module from chai in order to compare values.