From 5a375ce9e75a05344f19cada9dd22fb1edddea3c Mon Sep 17 00:00:00 2001 From: ShinYoung-Kim Date: Fri, 20 Sep 2024 20:52:16 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20jest=20testMatch=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/pre-commit | 2 +- jest.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c879405..585e22c 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,6 +1,6 @@ pnpm lint -pnpm jest --passWithNoTests +pnpm test if [ $? -ne 0 ]; then echo "테스트 실패" exit 1 diff --git a/jest.config.ts b/jest.config.ts index fc8044d..8851d9b 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -3,7 +3,7 @@ import type { Config } from "jest"; const config: Config = { testEnvironment: "jsdom", preset: "ts-jest", - testMatch: ["/packages/**/?(*.)+(spec|test).[jt]s?(x)"], + testMatch: ["/packages/**/__tests__/**/*.(spec|test).[jt]s?(x)"], setupFilesAfterEnv: ["/jest.setup.ts"], };