gene res 생성 및 next 업데이트

This commit is contained in:
2025-12-10 09:32:07 +09:00
parent 9346760aeb
commit 24ab0489f3
8 changed files with 102 additions and 42 deletions

View File

@@ -18,6 +18,7 @@ import { CowModule } from './cow/cow.module';
import { GenomeModule } from './genome/genome.module';
import { MptModule } from './mpt/mpt.module';
import { DashboardModule } from './dashboard/dashboard.module';
import { GeneModule } from './gene/gene.module';
@Module({
imports: [
@@ -54,6 +55,7 @@ import { DashboardModule } from './dashboard/dashboard.module';
FarmModule,
CowModule,
GenomeModule,
GeneModule,
MptModule,
DashboardModule,

View File

@@ -0,0 +1,20 @@
import { Test, TestingModule } from '@nestjs/testing';
import { GeneController } from './gene.controller';
import { GeneService } from './gene.service';
describe('GeneController', () => {
let controller: GeneController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [GeneController],
providers: [GeneService],
}).compile();
controller = module.get<GeneController>(GeneController);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});

View File

@@ -0,0 +1,7 @@
import { Controller } from '@nestjs/common';
import { GeneService } from './gene.service';
@Controller('gene')
export class GeneController {
constructor(private readonly geneService: GeneService) {}
}

View File

@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { GeneService } from './gene.service';
import { GeneController } from './gene.controller';
@Module({
controllers: [GeneController],
providers: [GeneService],
})
export class GeneModule {}

View File

@@ -0,0 +1,18 @@
import { Test, TestingModule } from '@nestjs/testing';
import { GeneService } from './gene.service';
describe('GeneService', () => {
let service: GeneService;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [GeneService],
}).compile();
service = module.get<GeneService>(GeneService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});

View File

@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class GeneService {}