DEV Community

Discussion on: When should I (not) use mocks in testing?

Collapse
 
bitttttten profile image
bitten

That setSystemTime is such a nice way of handling date sensitive things in your test. Going to refactor some of my tests now ;)

Collapse
 
pke profile image
Philipp Kursawe

Or not? See my reply: dev.to/pke/comment/1b3mf