Note on package usage: - Enzyme is used to shallow render components - Jest is used for running the tests. e.g. [expect|https://jestjs.io/docs/en/expect].
- Enzyme also provides expect but these will not work. e.g. Enzyme's `expect(....).to.have.lenght()` *won't work* whereas Jest's `expect(....).toHaveLength(number)` *will work*
Error messages provided when not using the correct one are not clear. |
|