Skip to content

Commit

Permalink
fix: jest testMatch 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinYoung-Kim committed Sep 20, 2024
1 parent 9a005d5 commit 5a375ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pnpm lint

pnpm jest --passWithNoTests
pnpm test
if [ $? -ne 0 ]; then
echo "테스트 실패"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Config } from "jest";
const config: Config = {
testEnvironment: "jsdom",
preset: "ts-jest",
testMatch: ["<rootDir>/packages/**/?(*.)+(spec|test).[jt]s?(x)"],
testMatch: ["<rootDir>/packages/**/__tests__/**/*.(spec|test).[jt]s?(x)"],
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
};

Expand Down

0 comments on commit 5a375ce

Please sign in to comment.