3 ms·
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 doe
by Cyph0n 4y ago
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 of the dependency.
Ideally, service/library owners would write and maintain the fake to ensure that it stays in sync as changes are made to the actual service.