Skip to content

Is it possible to generate the same mock in multiple directories? #793

Answered by LandonTClipp
gabrielgasp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes! I do believe this is possible. https://vektra.github.io/mockery/latest/features/#examples

There is a configs section you can specify (contrasted to config) that takes a list of config mappings. If you specify a different directory for each instance of the output mock, it should work.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gabrielgasp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants