From 379e01884ed26beba30c832eac4d853253b11c3a Mon Sep 17 00:00:00 2001 From: Mikhail Prokudin Date: Thu, 10 Jun 2021 11:44:15 +0700 Subject: [PATCH] delete unused boilerplate test --- .../ports/in/get-account-balance.query.ts | 2 +- test/app.e2e-spec.ts | 24 ------------------- test/jest-e2e.json | 9 ------- 3 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 test/app.e2e-spec.ts delete mode 100644 test/jest-e2e.json diff --git a/src/domains/ports/in/get-account-balance.query.ts b/src/domains/ports/in/get-account-balance.query.ts index 914c322..e1f63a0 100644 --- a/src/domains/ports/in/get-account-balance.query.ts +++ b/src/domains/ports/in/get-account-balance.query.ts @@ -1,4 +1,4 @@ -import {AccountId} from "../../entities/account.entity"; +import { AccountId } from '../../entities/account.entity'; export interface GetAccountBalanceQuery { getAccountBalance(accountId: AccountId); diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts deleted file mode 100644 index 50cda62..0000000 --- a/test/app.e2e-spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { INestApplication } from '@nestjs/common'; -import * as request from 'supertest'; -import { AppModule } from './../src/app.module'; - -describe('AppController (e2e)', () => { - let app: INestApplication; - - beforeEach(async () => { - const moduleFixture: TestingModule = await Test.createTestingModule({ - imports: [AppModule], - }).compile(); - - app = moduleFixture.createNestApplication(); - await app.init(); - }); - - it('/ (GET)', () => { - return request(app.getHttpServer()) - .get('/') - .expect(200) - .expect('Hello World!'); - }); -}); diff --git a/test/jest-e2e.json b/test/jest-e2e.json deleted file mode 100644 index e9d912f..0000000 --- a/test/jest-e2e.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "moduleFileExtensions": ["js", "json", "ts"], - "rootDir": ".", - "testEnvironment": "node", - "testRegex": ".e2e-spec.ts$", - "transform": { - "^.+\\.(t|j)s$": "ts-jest" - } -}