Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(DTFS2-6892): update mock builder, enforce complete defaults, document mocked class methods #4113

Conversation

AlexBramhill
Copy link
Contributor

After reverting commits -- this is a copy of the following PR #4067

Introduction ✏️

We sometimes need to include sync methods in our mock builders that are the same implementation as the service being mocked.

This is because of the existing policy of not mocking sync methods in tests

Resolution ✔️

Make mock builders require all params of the mocked class/type to be specified
Add documentation and example for how to pass through existing implementation of mocked class to mock builder
Make mock builders automatically instantiate defaults instead of having to use withDefaults
Update documentation with examples

AlexBramhill and others added 30 commits November 27, 2024 18:21
@abhi-markan abhi-markan merged commit e8f23c3 into main Feb 25, 2025
239 checks passed
@abhi-markan abhi-markan deleted the feat/DTFS2-6892/update-mock-builder-to-automatically-use-defaults branch February 25, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants