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

Protect mocks against circular depdency #158

Conversation

neekolas
Copy link
Contributor

@neekolas neekolas commented Sep 12, 2024

tl;dr

  • Having all the mocks in the same folder can lead to circular dependencies if any of the mocks reference a package that needs to use a mock
  • This puts each mock package in a folder that matches the PackageName which should be a safer approach long-term.

Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @neekolas and the rest of your teammates on Graphite Graphite

@neekolas neekolas marked this pull request as ready for review September 12, 2024 16:07
@neekolas neekolas requested a review from a team as a code owner September 12, 2024 16:07
@neekolas neekolas force-pushed the 09-12-protect_mocks_against_circular_depdency branch from 8539d63 to 288d1ce Compare September 12, 2024 16:08
Copy link

graphite-app bot commented Sep 12, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “Queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “Hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@neekolas neekolas force-pushed the 09-11-create_validation_service branch from 8c7f7e2 to ea9725c Compare September 12, 2024 20:01
@neekolas neekolas force-pushed the 09-12-protect_mocks_against_circular_depdency branch from 288d1ce to 1875117 Compare September 12, 2024 20:01
Copy link

graphite-app bot commented Sep 12, 2024

Merge activity

  • Sep 12, 4:22 PM PDT: neekolas added this pull request to the Graphite merge queue.
  • Sep 12, 4:24 PM PDT: CI is running for this PR on a draft PR: #161
  • Sep 12, 4:28 PM PDT: neekolas merged this pull request with the Graphite merge queue via draft PR: #161.

neekolas added a commit that referenced this pull request Sep 12, 2024
## tl;dr

- Having all the mocks in the same folder can lead to circular dependencies if _any_ of the mocks reference a package that needs to use a mock
- This puts each mock package in a folder that matches the `PackageName` which should be a safer approach long-term.
@graphite-app graphite-app bot closed this Sep 12, 2024
@graphite-app graphite-app bot deleted the 09-12-protect_mocks_against_circular_depdency branch September 12, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants