DEV Community

Discussion on: Top 3 mistakes you're probably doing while unit testing

Collapse
 
deleteman123 profile image
Fernando Doglio

Correct me if I am wrong, but I think if the test is spinning up databases and making real writes and reads it would have been integration tests, not unit tests.

That is completely correct, that would be an integration test, not a unit test.

As for the mocking critical inputs, could you provide an example? I don't think I'm following.