Skip to content

Commit

Permalink
feat: 유저 로그인 및 인증 구현 (테스트 문제 있음)
Browse files Browse the repository at this point in the history
minjungw00 committed Nov 14, 2024
1 parent ec9b257 commit d061320
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/jest.config.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,13 @@ const config: Config = {
rootDir: ".",
testRegex: ".*\\.spec\\.ts$",
transform: {
"^.+\\.(t|j)s$": ["ts-jest", { useESM: true }],
"^.+\\.(t|j)s$": [
"ts-jest",
{
tsconfig: "tsconfig.json",
useESM: true,
},
],
},
collectCoverageFrom: ["**/*.(t|j)s"],
coverageDirectory: "./coverage",
@@ -17,6 +23,8 @@ const config: Config = {
moduleNameMapper: {
"^@noctaCrdt$": "<rootDir>/../@noctaCrdt/dist/Crdt.js",
"^@noctaCrdt/(.*)$": "<rootDir>/../@noctaCrdt/dist/$1.js",
"^(\\.{1,2}/.*)\\.js$": "$1",
"^nanoid$": require.resolve("nanoid"),
},
};

2 changes: 2 additions & 0 deletions server/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import { ConfigModule, ConfigService } from "@nestjs/config";
import { MongooseModule } from "@nestjs/mongoose";
import { AuthModule } from "./auth/auth.module";
import { CrdtModule } from "./crdt/crdt.module";
import { AuthModule } from "./auth/auth.module";

@Module({
imports: [
@@ -23,6 +24,7 @@ import { CrdtModule } from "./crdt/crdt.module";
}),
AuthModule,
CrdtModule,
AuthModule,
],
controllers: [AppController],
providers: [AppService],

0 comments on commit d061320

Please sign in to comment.