diff --git a/docs/configuration.md b/docs/configuration.md index 7c01cc48..c8d3f45b 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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. @@ -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. | \ No newline at end of file + | `with-expecter` | Use `with-expecter: True` to generate `EXPECT()` methods for your mocks. This is the preferred way to setup your mocks. |