>>I worked on a project that did this once and they very quickly got blocked writing a test by the in memory database not supporting a feature postgres had.
>Realism matters
It is often just a small subset of tests which have to be very expensive to build, maintain and run because of an external dependency that cannot be mocked. Mocks work for 95% of use cases and should be used even if it is not 100%.