記事読んだけど、だいたいこんな感想になった
記事は読んでないけどユニットテストでは外部要因は全てモックとし、日付などをモックするライブラリによる破壊的変更も考慮しDIを使って日付時刻を挿入できるようにするのがベターだと思う - lycolia のブックマーク / はてなブックマーク : 👀
---
https://b.hatena.ne.jp/entry/4779185003749551105/comment/lycolia
記事読んだけど、だいたいこんな感想になった
記事は読んでないけどユニットテストでは外部要因は全てモックとし、日付などをモックするライブラリによる破壊的変更も考慮しDIを使って日付時刻を挿入できるようにするのがベターだと思う - lycolia のブックマーク / はてなブックマーク : 👀
---
https://b.hatena.ne.jp/entry/4779185003749551105/comment/lycolia
If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.sublimer.me/users/sublimer/statuses/115586870769324149 on your instance and quote it. (Note that quoting is not supported in Mastodon.)