Skip to content

Commit

Permalink
build: jest.config 경로 수동으로 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyonun321 committed Nov 14, 2024
1 parent 0af4cdf commit f0e53b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import type { Config } from "jest";
import { pathsToModuleNameMapper } from "ts-jest";
import { compilerOptions } from "./tsconfig.json";

const config: Config = {
moduleFileExtensions: ["js", "json", "ts"],
Expand All @@ -14,7 +12,9 @@ const config: Config = {
testEnvironment: "node",
preset: "@shelf/jest-mongodb",
watchPathIgnorePatterns: ["globalConfig"],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: "<rootDir>/../" }),
moduleNameMapper: {
"^@noctaCrdt/(.*)$": "<rootDir>/../@noctaCrdt/dist/$1",
},
};

export default config;

0 comments on commit f0e53b9

Please sign in to comment.