Testing · Senior · Question 16 of 75
Which are the main sources of non-determinism in tests, according to Fowler?
- ✓Correct answer: Lack of isolation, asynchronous behaviour, remote services, time and resource leaks
- 2TypeScript and ESLint
- 3Using too many assertions
Explanation
For each one there is a fix: isolate data, wait for conditions, replace remote services with doubles, control the clock.