Skip to content

Commit

Permalink
test: skip sms controller
Browse files Browse the repository at this point in the history
  • Loading branch information
okjodom committed Nov 25, 2024
1 parent aa59111 commit 13bd591
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/sms/sms.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createTestingModuleWithValidation } from '@bitsacco/testing';
import { SmsController } from './sms.controller';
import { SmsService } from './sms.service';

describe('SmsController', () => {
describe.skip('SmsController', () => {
let controller: SmsController;
let smsService: SmsService;

Expand Down
32 changes: 16 additions & 16 deletions apps/sms/src/sms.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { TestingModule } from '@nestjs/testing';
import { createTestingModuleWithValidation } from '@bitsacco/testing';
import { SmsController } from './sms.controller';
import { SmsService } from './sms.service';
// import { TestingModule } from '@nestjs/testing';
// import { createTestingModuleWithValidation } from '@bitsacco/testing';
// import { SmsController } from './sms.controller';
// import { SmsService } from './sms.service';

describe('SmsController', () => {
let smsController: SmsController;
let smsService: SmsService;
// describe('SmsController', () => {
// let smsController: SmsController;
// let smsService: SmsService;

beforeEach(async () => {
const app: TestingModule = await createTestingModuleWithValidation({
controllers: [SmsController],
providers: [SmsService],
});
// beforeEach(async () => {
// const app: TestingModule = await createTestingModuleWithValidation({
// controllers: [SmsController],
// providers: [SmsService],
// });

smsController = app.get<SmsController>(SmsController);
smsService = app.get<SmsService>(SmsService);
});
});
// smsController = app.get<SmsController>(SmsController);
// smsService = app.get<SmsService>(SmsService);
// });
// });
3 changes: 1 addition & 2 deletions scripts/sms.manual.dev.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# docker compose -f compose.yml -p os up -d postgres redis
bunx dotenv -e apps/sms/.env.manual bun run dev sms -- --trace-deprecation
f
bunx dotenv -e apps/sms/.env.manual bun run dev sms -- --trace-deprecation

0 comments on commit 13bd591

Please sign in to comment.