Skip to content

Commit 6dd1bf7

Browse files
committed
docs(recipes): rewrite suites recipe, reference unit unit testing docs
1 parent 949d31e commit 6dd1bf7

File tree

2 files changed

+186
-209
lines changed

2 files changed

+186
-209
lines changed

content/fundamentals/unit-testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ You can also retrieve these mocks out of the testing container as you normally w
203203

204204
> info **Hint** A general mock factory, like `createMock` from [`@golevelup/ts-jest`](https://github.com/golevelup/nestjs/tree/master/packages/testing) can also be passed directly.
205205
206+
> info **Hint** For focused unit testing with automatic mock generation without module setup, see
207+
> the [Suites](/recipes/suites) recipe. Suites automatically generates typed mocks for all dependencies by reading service
208+
> metadata.
209+
206210
> info **Hint** `REQUEST` and `INQUIRER` providers cannot be auto-mocked because they're already pre-defined in the context. However, they can be _overwritten_ using the custom provider syntax or by utilizing the `.overrideProvider` method.
207211
208212
#### End-to-end testing

0 commit comments

Comments
 (0)