From 75d7737e1eeb724fdd7522fdf643991b959fc4c3 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Sat, 20 Jul 2024 15:33:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=B0=90=20=EB=A7=88=EB=AC=B4=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shared-config/jest.config.ts | 25 ------------------------- packages/wow-ui/jest.config.ts | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 26 deletions(-) diff --git a/packages/shared-config/jest.config.ts b/packages/shared-config/jest.config.ts index 584b10d6..6eb2bbf2 100644 --- a/packages/shared-config/jest.config.ts +++ b/packages/shared-config/jest.config.ts @@ -2,36 +2,11 @@ import type { Config } from "jest"; const config: Config = { preset: "ts-jest", - transform: { - "^.+\\.jsx?$": "babel-jest", - "^.+\\.tsx?$": [ - "ts-jest", - { - tsconfig: "/tsconfig.json", - }, - ], - }, setupFilesAfterEnv: ["../shared-config/jest.setup.ts"], verbose: true, collectCoverage: true, restoreMocks: true, - testMatch: [ - "/src/**/*.test.(js|jsx|ts|tsx)", - "/app/**/*.test.(js|jsx|ts|tsx)", - ], - testPathIgnorePatterns: [ - "/styled-system/", - "/node-modules/", - ], - coveragePathIgnorePatterns: [ - "/styled-system/", - "/node-modules/", - ], - moduleNameMapper: { - "^@/(.*)$": "/src/$1", - "^@styled-system(.*)$": "/styled-system/$1", - }, }; export default config; diff --git a/packages/wow-ui/jest.config.ts b/packages/wow-ui/jest.config.ts index 267deee5..2f0094ef 100644 --- a/packages/wow-ui/jest.config.ts +++ b/packages/wow-ui/jest.config.ts @@ -9,10 +9,26 @@ const config: Config = { "^.+\\.tsx?$": [ "ts-jest", { - tsconfig: "/tsconfig.json", // packages/wow-ui/tsconfig.json을 가리키게 함 + tsconfig: "/tsconfig.json", }, ], }, + testMatch: [ + "/src/**/*.test.(js|jsx|ts|tsx)", + "/app/**/*.test.(js|jsx|ts|tsx)", + ], + testPathIgnorePatterns: [ + "/styled-system/", + "/node-modules/", + ], + coveragePathIgnorePatterns: [ + "/styled-system/", + "/node-modules/", + ], + moduleNameMapper: { + "^@/(.*)$": "/src/$1", + "^@styled-system(.*)$": "/styled-system/$1", + }, }; export default config;