test: enable validationPipe in TestSetup

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-03-04 17:54:20 +01:00
parent 5eab4f42d6
commit 5b7026758a

View file

@ -263,6 +263,11 @@ export class TestSetupBuilder {
this.testSetup.app,
this.testSetup.configService.get<AuthConfig>('authConfig'),
);
this.testSetup.app.useGlobalPipes(
setupValidationPipe(
await this.testSetup.app.resolve(ConsoleLoggerService),
),
);
for (const setupFunction of this.setupPostCompile) {
await setupFunction();