Skip to content

Conversation

@dominikkaluza
Copy link
Collaborator

@dominikkaluza dominikkaluza commented Dec 19, 2025

Mockery trait usage is important only in test files. You may use a factory or some helper class to set up mocks, but those will ultimately be used in a test anyways. We don't need to enforce the trait on such factory/helper classes, it doesn't do anything.

@dominikkaluza dominikkaluza force-pushed the DE-151249-mockery-trait-rule-skip-non-test-classes branch from 5b11b90 to 5e33887 Compare December 19, 2025 13:06
@dominikkaluza dominikkaluza merged commit 695b956 into master Jan 13, 2026
19 checks passed
@dominikkaluza dominikkaluza deleted the DE-151249-mockery-trait-rule-skip-non-test-classes branch January 13, 2026 10:22
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.

4 participants