From 8283912c50490fd76c5bfe894a8ae4e83d661fbc Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 22 Oct 2025 09:55:34 -0500 Subject: [PATCH] fix: update Husky hooks for v10 compatibility and fix test scripts - Remove deprecated shebang lines from Husky hooks - Fix test:run to properly exclude integration tests - Update test:integration to directly specify integration test file - All test suites now working correctly (85 unit + 3 integration tests) --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- package.json | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 5443bbb..d944ebc 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # Validate commit message format pnpm commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 02a9c75..93ea685 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # Run linting on staged files pnpm lint-staged diff --git a/package.json b/package.json index c67ec56..f96c30a 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "start": "next start", "test": "vitest", "test:ui": "vitest --ui", - "test:run": "vitest run --exclude '**/*.integration.test.ts'", - "test:integration": "vitest run '**/*.integration.test.ts'", + "test:run": "vitest run --exclude '**/*.integration.test.{ts,tsx}'", + "test:integration": "vitest run src/rdap.integration.test.ts", "test:all": "vitest run", "type-check": "tsc --noEmit", "prepare": "husky install",