DEV Community

Discussion on: Custom validation with database in NestJS

simplenotezy profile image
Mattias Fjellvang

This is a great article and just what I was looking for. However, is there a way to provide the container (using useContainer(, { fallbackOnErrors: true });) in the app.module.ts instead of in the main.ts file? Because I'd like this to be testable, and if I define it inside app.module.ts, my e2e tests would not function with my custom decorators.