-
Notifications
You must be signed in to change notification settings - Fork 0
Staging
GradedJestRisk edited this page Mar 10, 2020
·
1 revision
Questions:
- should we/when assert component has been called with proper arguments ? unit ? component ?
- component test between non in/out component ?
- downside of unit tests ?
Make it work
- use response (or it will fail): use stub
- does not use response: use fake (cause no error)
- Side-effect free (pure) => test state (return values) => no need for mocks
- Side -effect (impure) => test side-effect (outside calls) => need spies