NestJS · Senior · Question 63 of 75
What does app.useGlobalInterceptors() NOT give you compared to APP_INTERCEPTOR?
- ✓Correct answer: Dependency injection into the interceptor and inclusion in testing modules
- 2Global coverage of routes
- 3Support for async logic
Explanation
Instances passed to useGlobal* are created outside the container.