From d1a35315d920ee2ff2e3b3abeb2e50a4b1639488 Mon Sep 17 00:00:00 2001 From: nicohrubec Date: Thu, 11 Jul 2024 10:06:33 +0200 Subject: [PATCH] Lint --- .../nestjs/src/test-module/test.exception.ts | 2 +- .../test-applications/nestjs/src/test-module/test.filter.ts | 4 ++-- .../test-applications/nestjs/src/test-module/test.module.ts | 6 +++--- .../e2e-tests/test-applications/nestjs/tests/errors.test.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.exception.ts b/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.exception.ts index e94203ead201..b736596b6717 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.exception.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.exception.ts @@ -1,5 +1,5 @@ export class TestException extends Error { constructor() { - super("Something went wrong in the test module!"); + super('Something went wrong in the test module!'); } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.filter.ts b/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.filter.ts index aba60d2b1fa1..87a4ca0920e5 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.filter.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.filter.ts @@ -1,10 +1,10 @@ import { ArgumentsHost, BadRequestException, Catch } from '@nestjs/common'; -import { TestException } from './test.exception'; import { BaseExceptionFilter } from '@nestjs/core'; +import { TestException } from './test.exception'; @Catch(TestException) export class TestExceptionFilter extends BaseExceptionFilter { - catch (exception: unknown, host: ArgumentsHost) { + catch(exception: unknown, host: ArgumentsHost) { if (exception instanceof TestException) { return super.catch(new BadRequestException(exception.message), host); } diff --git a/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.module.ts b/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.module.ts index 3b986c03ab22..37b6dbe7e819 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.module.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs/src/test-module/test.module.ts @@ -1,6 +1,6 @@ import { Module } from '@nestjs/common'; -import { TestController } from './test.controller'; import { APP_FILTER } from '@nestjs/core'; +import { TestController } from './test.controller'; import { TestExceptionFilter } from './test.filter'; @Module({ @@ -10,7 +10,7 @@ import { TestExceptionFilter } from './test.filter'; { provide: APP_FILTER, useClass: TestExceptionFilter, - } - ] + }, + ], }) export class TestModule {} diff --git a/dev-packages/e2e-tests/test-applications/nestjs/tests/errors.test.ts b/dev-packages/e2e-tests/test-applications/nestjs/tests/errors.test.ts index 23eb165cd580..ffb48f4e5e70 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs/tests/errors.test.ts +++ b/dev-packages/e2e-tests/test-applications/nestjs/tests/errors.test.ts @@ -57,7 +57,7 @@ test('Does not send expected exception to Sentry', async ({ baseURL }) => { test('Does not handle expected exception if exception is thrown in module', async ({ baseURL }) => { const errorEventPromise = waitForError('nestjs', event => { return !event.type && event.exception?.values?.[0]?.value === 'Something went wrong in the test module!'; - }) + }); const response = await fetch(`${baseURL}/test-module`); expect(response.status).toBe(500); // should be 400