-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: for get providers/controllers when the decorator is not used
- Loading branch information
1 parent
ed92fd3
commit 3f385b8
Showing
2 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
integration/discovery/src/decorators/non-applied.decorator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { DiscoveryService } from '@nestjs/core'; | ||
|
||
/** | ||
* This decorator must not be used anywhere! | ||
* This will be used to test the scenario where we are trying to fetching metadata | ||
* for a discoverable decorator that was not applied to any class. | ||
*/ | ||
export const NonAppliedDecorator = DiscoveryService.createDecorator(); |