We have stopped writing unit tests for any code that has side effects.
This has an interesting side-effect (pun-intended) that because integration-tests take longer to write and run people tend to write more code that is side-effect free and isolate side-effects to interaction boundaries.