Re:Ask HN: Concepts that clicked only years after you first ...
by Cyph0n on Sunday January 01, 2023 @02:33PM
(#34209898)
Fakes are not mocks. A fake is an actual implementation of the dependency that runs in-process/in-memory. This means that, unlike with mocks, your test code does not dictate the behavior/outputs.
Ideally, service owners would write and maintain the fake to ensure that it stays in sync as changes are made to the actual service.
Ideally, service owners would write and maintain the fake to ensure that it stays in sync as changes are made to the actual service.