refactor: organize backend by business responsibility
This commit is contained in:
+10
-4
@@ -1,16 +1,18 @@
|
||||
import {
|
||||
INestApplication,
|
||||
ConflictException,
|
||||
INestApplication,
|
||||
NotFoundException,
|
||||
ServiceUnavailableException,
|
||||
} from '@nestjs/common';
|
||||
import { JwtService } from '@nestjs/jwt';
|
||||
import { Test } from '@nestjs/testing';
|
||||
import request from 'supertest';
|
||||
import type { Server } from 'node:http';
|
||||
import request from 'supertest';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { configureApp } from '../src/main';
|
||||
import { StockService } from '../src/tbank/stock.service';
|
||||
import { StockIncomeService } from '../src/modules/investments/instruments/stocks/application/stock-income.service';
|
||||
import { StockMarketService } from '../src/modules/investments/instruments/stocks/application/stock-market.service';
|
||||
import { StockCatalogService } from '../src/modules/investments/instruments/stocks/application/stock-catalog.service';
|
||||
|
||||
const uid = 'e6123145-9665-43e0-8413-cd61b8aa9b13';
|
||||
describe('Stock HTTP contract', () => {
|
||||
@@ -27,7 +29,11 @@ describe('Stock HTTP contract', () => {
|
||||
);
|
||||
beforeAll(async () => {
|
||||
const module = await Test.createTestingModule({ imports: [AppModule] })
|
||||
.overrideProvider(StockService)
|
||||
.overrideProvider(StockCatalogService)
|
||||
.useValue(stocks)
|
||||
.overrideProvider(StockMarketService)
|
||||
.useValue(stocks)
|
||||
.overrideProvider(StockIncomeService)
|
||||
.useValue(stocks)
|
||||
.compile();
|
||||
app = module.createNestApplication();
|
||||
|
||||
Reference in New Issue
Block a user