Skip to content

Commit

Permalink
update configuration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Jul 10, 2023
1 parent 8385b8c commit 6399f5b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ Copy the recommended basic configuration to a file called `.mockery.yaml` at the
with-expecter: true
packages:
github.com/your-org/your-go-project:
# populate your packages configuration here
# place your package-specific config here
config:
interfaces:
# select the interfaces you want mocked
Foo:
# Modify package-level config for this specific interface (if applicable)
config:
```
mockery will search upwards from your current-working-directory up to the root path, so the same configuration should be able to follow you within your project.
Expand Down Expand Up @@ -251,4 +257,4 @@ Legacy config options
| `recursive` | Use the `recursive` option to search subdirectories for the interface(s). This option is only compatible with `name`. The `all` option implies `recursive: True`. |
| `replace-type source=destination` | Replaces aliases, packages and/or types during generation.|
| `testonly` | Prepend every mock file with `_test.go`. This is useful in cases where you are generating mocks `inpackage` but don't want the mocks to be visible to code outside of tests. |
| `with-expecter` | Use `with-expecter: True` to generate `EXPECT()` methods for your mocks. This is the preferred way to setup your mocks. |
| `with-expecter` | Use `with-expecter: True` to generate `EXPECT()` methods for your mocks. This is the preferred way to setup your mocks. |

0 comments on commit 6399f5b

Please sign in to comment.