Fix logs in integration tests (#11632)
## Before <img width="1512" alt="image" src="https://github.com/user-attachments/assets/3e8be2e0-ac16-4735-8783-69c800bf0aaf" /> ## After <img width="1512" alt="image" src="https://github.com/user-attachments/assets/1a83e7ce-d70a-43c4-a6cd-89dd456d80c1" />
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
import { ExceptionHandlerOptions } from 'src/engine/core-modules/exception-handler/interfaces/exception-handler-options.interface';
|
||||
|
||||
import { ExceptionHandlerDriverInterface } from 'src/engine/core-modules/exception-handler/interfaces';
|
||||
|
||||
@Injectable()
|
||||
export class ExceptionHandlerMockService
|
||||
implements ExceptionHandlerDriverInterface
|
||||
{
|
||||
captureExceptions(
|
||||
exceptions: readonly any[],
|
||||
_?: ExceptionHandlerOptions | undefined,
|
||||
): string[] {
|
||||
return exceptions.map(() => 'mocked-exception-id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user