From 9e27981f27b7dad115b9feff99bf6af3c343ddb4 Mon Sep 17 00:00:00 2001 From: kyungmi-k Date: Fri, 3 Jul 2026 14:04:41 +0900 Subject: [PATCH 1/3] fix(commit-helper): move imports to top of test file --- packages/commit-helper/__test__/cli.test.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/commit-helper/__test__/cli.test.js b/packages/commit-helper/__test__/cli.test.js index f1e345d..8da3a74 100644 --- a/packages/commit-helper/__test__/cli.test.js +++ b/packages/commit-helper/__test__/cli.test.js @@ -1,4 +1,8 @@ -import {getCommitMessageByBranchName, isStringMatchingPatterns, resolveKey, alreadyHasRef} from '../bin/cli.js' +import {writeFile, mkdtemp, rm} from 'fs/promises' +import {tmpdir} from 'os' +import {join} from 'path' + +import {getCommitMessageByBranchName, isStringMatchingPatterns, resolveKey, alreadyHasRef, loadExtendsConfig} from '../bin/cli.js' import {BRANCH_ISSUE_TAGGING_REGEX} from '../src/constant.js' describe('브랜치가 commithelper 형식에 맞는지 확인하는 정규식', () => { @@ -161,11 +165,6 @@ describe('getCommitMessageByBranchName: 우선순위와 멱등', () => { // ── extends: loadExtendsConfig ──────────────────────────────────────────────── -import {loadExtendsConfig} from '../bin/cli.js' -import {writeFile, mkdtemp, rm} from 'fs/promises' -import {tmpdir} from 'os' -import {join} from 'path' - describe('loadExtendsConfig — local file path', () => { let dir From bbe3150235efbf6d6cc5827ed3080b08d75eed99 Mon Sep 17 00:00:00 2001 From: kyungmi-k Date: Fri, 3 Jul 2026 14:28:45 +0900 Subject: [PATCH 2/3] Revert "fix(commit-helper): move imports to top of test file" This reverts commit 9e27981f27b7dad115b9feff99bf6af3c343ddb4. --- packages/commit-helper/__test__/cli.test.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/commit-helper/__test__/cli.test.js b/packages/commit-helper/__test__/cli.test.js index 8da3a74..f1e345d 100644 --- a/packages/commit-helper/__test__/cli.test.js +++ b/packages/commit-helper/__test__/cli.test.js @@ -1,8 +1,4 @@ -import {writeFile, mkdtemp, rm} from 'fs/promises' -import {tmpdir} from 'os' -import {join} from 'path' - -import {getCommitMessageByBranchName, isStringMatchingPatterns, resolveKey, alreadyHasRef, loadExtendsConfig} from '../bin/cli.js' +import {getCommitMessageByBranchName, isStringMatchingPatterns, resolveKey, alreadyHasRef} from '../bin/cli.js' import {BRANCH_ISSUE_TAGGING_REGEX} from '../src/constant.js' describe('브랜치가 commithelper 형식에 맞는지 확인하는 정규식', () => { @@ -165,6 +161,11 @@ describe('getCommitMessageByBranchName: 우선순위와 멱등', () => { // ── extends: loadExtendsConfig ──────────────────────────────────────────────── +import {loadExtendsConfig} from '../bin/cli.js' +import {writeFile, mkdtemp, rm} from 'fs/promises' +import {tmpdir} from 'os' +import {join} from 'path' + describe('loadExtendsConfig — local file path', () => { let dir From fa7f3cb31a4ca5e5aff3237e7cba58adf0f44547 Mon Sep 17 00:00:00 2001 From: kyungmi-k Date: Fri, 3 Jul 2026 14:28:45 +0900 Subject: [PATCH 3/3] fix: exclude test files from ESLint --- .eslintignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintignore b/.eslintignore index 5f09fe1..cf72ebf 100644 --- a/.eslintignore +++ b/.eslintignore @@ -63,3 +63,7 @@ dist apps/docs/docs .changeset/* + +# Test files +**/*.test.js +**/*.test.ts