-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196 from songbuild00/feature-be-#53#57
[BE] feat#53#57 κ²μ μμ λ° μ§ν ꡬν, κΈ°μ‘΄ ꡬνλ€ λ€μ€ μλ² κ³ λ €
- Loading branch information
Showing
17 changed files
with
943 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":2,"numPassedTests":10,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":2,"numTotalTests":10,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1730881811395,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":203,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μ ν¨ν μ€μ μΌλ‘ κ²μλ°© μμ± μ±κ³΅","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"μ ν¨ν μ€μ μΌλ‘ κ²μλ°© μμ± μ±κ³΅"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":105,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ λΉ title","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"λΉ title"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":68,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ λΉ gameMode","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"λΉ gameMode"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":85,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μλͺ»λ gameMode","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"μλͺ»λ gameMode"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":83,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μ΅μ μΈμ λ―Έλ¬","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"μ΅μ μΈμ λ―Έλ¬"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":79,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μ΅λ μΈμ μ΄κ³Ό","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"μ΅λ μΈμ μ΄κ³Ό"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":91,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μλͺ»λ boolean νμ ","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"μλͺ»λ boolean νμ "},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":69,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ λ°©μμ±μ μλ²λ μ¬λ°λ₯Έ 6μ리 μ«μ(PIN)μ μλ΅ν΄μΌνλ€.","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"λ°©μμ±μ μλ²λ μ¬λ°λ₯Έ 6μ리 μ«μ(PIN)μ μλ΅ν΄μΌνλ€."},{"ancestorTitles":["GameGateway (e2e)","chatMessage μ΄λ²€νΈ ν μ€νΈ"],"duration":126,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) chatMessage μ΄λ²€νΈ ν μ€νΈ κ°μ Roomμ νλ μ΄μ΄λ€μκ² λΈλ‘λμΊμ€ν μ±κ³΅","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"κ°μ Roomμ νλ μ΄μ΄λ€μκ² λΈλ‘λμΊμ€ν μ±κ³΅"}],"endTime":1730881821139,"message":"","name":"D:\\nest_project\\QuizGround\\web10-QuizGround\\BE\\test\\game.e2e-spec.ts","startTime":1730881811553,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["AppController (e2e)"],"duration":158,"failureDetails":[],"failureMessages":[],"fullName":"AppController (e2e) / (GET)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"passed","title":"/ (GET)"}],"endTime":1730881821996,"message":"","name":"D:\\nest_project\\QuizGround\\web10-QuizGround\\BE\\test\\app.e2e-spec.ts","startTime":1730881821176,"status":"passed","summary":""}],"wasInterrupted":false} | ||
{"numFailedTestSuites":1,"numFailedTests":0,"numPassedTestSuites":1,"numPassedTests":10,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":1,"numTodoTests":0,"numTotalTestSuites":2,"numTotalTests":10,"openHandles":[{}],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1731590376451,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":242,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μ ν¨ν μ€μ μΌλ‘ κ²μλ°© μμ± μ±κ³΅","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"μ ν¨ν μ€μ μΌλ‘ κ²μλ°© μμ± μ±κ³΅"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":93,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ λΉ titleμΈ κ²½μ° μλ¬ λ°μ","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"λΉ titleμΈ κ²½μ° μλ¬ λ°μ"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":80,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ λΉ gameModeμΈ κ²½μ° μλ¬ λ°μ","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"λΉ gameModeμΈ κ²½μ° μλ¬ λ°μ"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":87,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μλͺ»λ gameModeμΈ κ²½μ° μλ¬ λ°μ","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"μλͺ»λ gameModeμΈ κ²½μ° μλ¬ λ°μ"},{"ancestorTitles":["GameGateway (e2e)","createRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":78,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) createRoom μ΄λ²€νΈ ν μ€νΈ μ΅μ μΈμ λ―Έλ¬μΈ κ²½μ° μλ¬ λ°μ","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"μ΅μ μΈμ λ―Έλ¬μΈ κ²½μ° μλ¬ λ°μ"},{"ancestorTitles":["GameGateway (e2e)","joinRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":87,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) joinRoom μ΄λ²€νΈ ν μ€νΈ μ‘΄μ¬νλ λ°© μ°Έμ¬ μ±κ³΅","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"μ‘΄μ¬νλ λ°© μ°Έμ¬ μ±κ³΅"},{"ancestorTitles":["GameGateway (e2e)","joinRoom μ΄λ²€νΈ ν μ€νΈ"],"duration":73,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) joinRoom μ΄λ²€νΈ ν μ€νΈ μ‘΄μ¬νμ§ μλ λ°© μ°Έμ¬ μ€ν¨","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"μ‘΄μ¬νμ§ μλ λ°© μ°Έμ¬ μ€ν¨"},{"ancestorTitles":["GameGateway (e2e)","chatMessage μ΄λ²€νΈ ν μ€νΈ"],"duration":182,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) chatMessage μ΄λ²€νΈ ν μ€νΈ κ°μ λ°©μ λͺ¨λ νλ μ΄μ΄μκ² λ©μμ§ μ μ‘","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"κ°μ λ°©μ λͺ¨λ νλ μ΄μ΄μκ² λ©μμ§ μ μ‘"},{"ancestorTitles":["GameGateway (e2e)","updatePosition μ΄λ²€νΈ ν μ€νΈ"],"duration":133,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) updatePosition μ΄λ²€νΈ ν μ€νΈ μμΉ μ λ°μ΄νΈ μ±κ³΅","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"μμΉ μ λ°μ΄νΈ μ±κ³΅"},{"ancestorTitles":["GameGateway (e2e)","startGame μ΄λ²€νΈ ν μ€νΈ"],"duration":1613,"failureDetails":[],"failureMessages":[],"fullName":"GameGateway (e2e) startGame μ΄λ²€νΈ ν μ€νΈ κ²μ μμ μ±κ³΅","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"κ²μ μμ μ±κ³΅"}],"endTime":1731590391795,"message":"","name":"/Users/song-build/IdeaProjects/web10-QuizGround/BE/test/game.e2e-spec.ts","startTime":1731590376502,"status":"passed","summary":""},{"assertionResults":[],"coverage":{},"endTime":1731590392117,"message":" \u001b[1mβ \u001b[22mTest suite failed to run\n\n Your test suite must contain at least one test.\n\n \u001b[2mat onResult (\u001b[22m../node_modules/@jest/core/build/TestScheduler.js\u001b[2m:133:18)\u001b[22m\n \u001b[2mat \u001b[22m../node_modules/@jest/core/build/TestScheduler.js\u001b[2m:254:19\u001b[22m\n \u001b[2mat \u001b[22m../node_modules/emittery/index.js\u001b[2m:363:13\u001b[22m\n at Array.map (<anonymous>)\n \u001b[2mat Emittery.emit (\u001b[22m../node_modules/emittery/index.js\u001b[2m:361:23)\u001b[22m\n","name":"/Users/song-build/IdeaProjects/web10-QuizGround/BE/test/app.e2e-spec.ts","startTime":1731590392117,"status":"failed","summary":""}],"wasInterrupted":false} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { AppController } from './app.controller'; | ||
import { AppService } from './app.service'; | ||
import { GameModule } from './game/game.module'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
import { RedisModule } from '@nestjs-modules/ioredis'; | ||
import { ConfigModule } from '@nestjs/config'; | ||
import { QuizSetModel } from './quiz/entities/quiz-set.entity'; | ||
import { QuizModel } from './quiz/entities/quiz.entity'; | ||
import { QuizChoiceModel } from './quiz/entities/quiz-choice.entity'; | ||
import { UserModel } from './user/entities/user.entity'; | ||
import { UserQuizArchiveModel } from './user/entities/user-quiz-archive.entity'; | ||
import { InitDBModule } from './InitDB/InitDB.module'; | ||
import { UserModule } from './user/user.module'; | ||
import { QuizModule } from './quiz/quiz.module'; | ||
|
||
@Module({ | ||
imports: [ | ||
ConfigModule.forRoot({ | ||
envFilePath: '../.env', | ||
isGlobal: true | ||
}), | ||
GameModule, | ||
TypeOrmModule.forRoot({ | ||
type: 'mysql', | ||
host: process.env.DB_HOST || 'localhost', | ||
port: +process.env.DB_PORT || 3306, | ||
username: process.env.DB_USER || 'root', | ||
password: process.env.DB_PASSWD || 'test', | ||
database: process.env.DB_NAME || 'test_db', | ||
entities: [QuizSetModel, QuizModel, QuizChoiceModel, UserModel, UserQuizArchiveModel], | ||
synchronize: process.env.DEV ? true : false, // κ°λ° λͺ¨λμμλ§ νμ±ν | ||
logging: true, // λͺ¨λ 쿼리 λ‘κΉ | ||
logger: 'advanced-console' | ||
// extra: { | ||
// // κΈλ‘λ² batch size μ€μ | ||
// maxBatchSize: 100 | ||
// } | ||
}), | ||
RedisModule.forRoot({ | ||
type: 'single', | ||
url: process.env.REDIS_URL || 'redis://localhost:6379' | ||
}), | ||
QuizModule, | ||
UserModule, | ||
InitDBModule | ||
], | ||
controllers: [AppController], | ||
providers: [AppService] | ||
}) | ||
export class AppModule {} | ||
import { Module } from '@nestjs/common'; | ||
import { AppController } from './app.controller'; | ||
import { AppService } from './app.service'; | ||
import { GameModule } from './game/game.module'; | ||
import { TypeOrmModule } from '@nestjs/typeorm'; | ||
import { RedisModule } from '@nestjs-modules/ioredis'; | ||
import { ConfigModule } from '@nestjs/config'; | ||
import { QuizSetModel } from './quiz/entities/quiz-set.entity'; | ||
import { QuizModel } from './quiz/entities/quiz.entity'; | ||
import { QuizChoiceModel } from './quiz/entities/quiz-choice.entity'; | ||
import { UserModel } from './user/entities/user.entity'; | ||
import { UserQuizArchiveModel } from './user/entities/user-quiz-archive.entity'; | ||
import { InitDBModule } from './InitDB/InitDB.module'; | ||
import { UserModule } from './user/user.module'; | ||
import { QuizModule } from './quiz/quiz.module'; | ||
|
||
@Module({ | ||
imports: [ | ||
ConfigModule.forRoot({ | ||
envFilePath: '../.env', | ||
isGlobal: true | ||
}), | ||
GameModule, | ||
TypeOrmModule.forRoot({ | ||
type: 'mysql', | ||
host: process.env.DB_HOST || 'localhost', | ||
port: +process.env.DB_PORT || 3306, | ||
username: process.env.DB_USER || 'root', | ||
password: process.env.DB_PASSWD || 'test', | ||
database: process.env.DB_NAME || 'test_db', | ||
entities: [QuizSetModel, QuizModel, QuizChoiceModel, UserModel, UserQuizArchiveModel], | ||
synchronize: process.env.DEV ? true : false, // κ°λ° λͺ¨λμμλ§ νμ±ν | ||
logging: true, // λͺ¨λ 쿼리 λ‘κΉ | ||
logger: 'advanced-console' | ||
// extra: { | ||
// // κΈλ‘λ² batch size μ€μ | ||
// maxBatchSize: 100 | ||
// } | ||
}), | ||
RedisModule.forRoot({ | ||
type: 'single', | ||
url: process.env.REDIS_URL || 'redis://localhost:6379' | ||
}), | ||
QuizModule, | ||
UserModule, | ||
InitDBModule | ||
], | ||
controllers: [AppController], | ||
providers: [AppService] | ||
}) | ||
export class AppModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.