Skip to content

Commit

Permalink
Merge pull request #2906 from ZimGil/patch-2
Browse files Browse the repository at this point in the history
Remove redundant warning
  • Loading branch information
kamilmysliwiec authored Nov 21, 2023
2 parents 560719b + 2dd4429 commit 6a373ad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions content/fundamentals/unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,6 @@ Each of the override method types, in turn, returns the `TestingModule` instance

Also, sometimes you may want to provide a custom logger e.g. when the tests are run (for example, on a CI server). Use the `setLogger()` method and pass an object that fulfills the `LoggerService` interface to instruct the `TestModuleBuilder` how to log during tests (by default, only "error" logs will be logged to the console).

> warning **Warning** The `@nestjs/core` package exposes unique provider tokens with the `APP_` prefix to help on define global enhancers. Those tokens cannot be overridden since they can represent multiple providers. Thus you can't use `.overrideProvider(APP_GUARD)` (and so on). If you want to override some global enhancer, follow [this workaround](https://github.com/nestjs/nest/issues/4053#issuecomment-585612462).
The compiled module has several useful methods, as described in the following table:

<table>
Expand Down

0 comments on commit 6a373ad

Please sign in to comment.