Mocking mongo-go-driver v2

I have found some old blog posts teaching how to mock, but at the time the driver was at v1, and v2 is no longer compatible with the mtest package, implemented on v1, now I can’t find a way to mock the database, anyone know what to do?

Hi @Fabio_Nacarelli, we usually advise against mocking databases. Instead, it’s better to use a container-based integration testing framework like testcontainers. However, if you need to use a mock deployment, version 2 provides a MockDeployment option in the experimental API. Note that experimental API may be modified or removed without notice.