From 1eb921e2e138f77ba5e8450d9e8edb78f25a5e46 Mon Sep 17 00:00:00 2001 From: Konstantin Tsabolov <konstantin.tsabolov@spherity.com> Date: Fri, 22 Dec 2023 12:02:44 +0100 Subject: [PATCH] chore(e2e): remove E2E tests --- apps/connection-manager/test/app.e2e-spec.ts | 28 -------------------- apps/connection-manager/test/jest.config.js | 9 ------- 2 files changed, 37 deletions(-) delete mode 100644 apps/connection-manager/test/app.e2e-spec.ts delete mode 100644 apps/connection-manager/test/jest.config.js diff --git a/apps/connection-manager/test/app.e2e-spec.ts b/apps/connection-manager/test/app.e2e-spec.ts deleted file mode 100644 index 071ca4e..0000000 --- a/apps/connection-manager/test/app.e2e-spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { INestApplication } from '@nestjs/common'; -import type { TestingModule } from '@nestjs/testing'; - -import { afterEach, beforeEach, describe, it } from '@jest/globals'; -import { Test } from '@nestjs/testing'; -import request from 'supertest'; - -import AppModule from '../src/app.module.js'; - -describe('AppController (e2e)', () => { - let app: INestApplication; - - beforeEach(async () => { - const moduleFixture: TestingModule = await Test.createTestingModule({ - imports: [AppModule], - }).compile(); - - app = moduleFixture.createNestApplication(); - await app.init(); - }); - - afterEach(async () => { - await app.close(); - }); - - it('/v1/health (GET)', () => - request(app.getHttpServer()).get('/health').expect(200)); -}); diff --git a/apps/connection-manager/test/jest.config.js b/apps/connection-manager/test/jest.config.js deleted file mode 100644 index c2b3ddf..0000000 --- a/apps/connection-manager/test/jest.config.js +++ /dev/null @@ -1,9 +0,0 @@ -/** @type {import('jest').Config} */ - -import config from '../jest.config.js'; - -export default { - ...config, - rootDir: '.', - testRegex: '.*\\.e2e-spec\\.ts$', -}; -- GitLab