Skip to content

Commit

Permalink
chore: jest 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene028 committed Jul 20, 2024
1 parent ed95e1a commit cfa5dc8
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/shared-config/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,10 @@ import type { Config } from "jest";

const config: Config = {
preset: "ts-jest",
transform: {
"^.+\\.jsx?$": "babel-jest",
"^.+\\.tsx?$": [
"ts-jest",
{
tsconfig: "<rootDir>/tsconfig.json",
},
],
},

setupFilesAfterEnv: ["../shared-config/jest.setup.ts"],
verbose: true,
collectCoverage: true,
restoreMocks: true,
testMatch: [
"<rootDir>/src/**/*.test.(js|jsx|ts|tsx)",
"<rootDir>/app/**/*.test.(js|jsx|ts|tsx)",
],
testPathIgnorePatterns: [
"<rootDir>/styled-system/",
"<rootDir>/node-modules/",
],
coveragePathIgnorePatterns: [
"<rootDir>/styled-system/",
"<rootDir>/node-modules/",
],
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
"^@styled-system(.*)$": "<rootDir>/styled-system/$1",
},
};

export default config;

0 comments on commit cfa5dc8

Please sign in to comment.