Skip to content

Commit 398dd8a

Browse files
alpslaclaude
andcommitted
fix(test): Remove .js extensions from all git-utils imports for ts-node compatibility
Fixed all remaining dynamic imports in test file (lines 701, 770, 970) to use TypeScript-compatible import syntax without .js extension. This resolves module resolution errors when running tests with ts-node. Related to Bug #5 fix commit f218631. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f218631 commit 398dd8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/agents/tests/integration/test-v9-lite-e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ async function runLiteE2ETest(scenario: TestScenario): Promise<void> {
698698

699699
if (scenario.testMode === 'baseline') {
700700
// SESSION 20 FIX: Baseline mode - analyze default branch only
701-
const { detectDefaultBranch } = await import('../../src/two-branch/utils/git-utils.js');
701+
const { detectDefaultBranch } = await import('../../src/two-branch/utils/git-utils');
702702
const defaultBranch = detectDefaultBranch(repoPath);
703703
console.log(` 📊 Repository Baseline Analysis (default branch: ${defaultBranch})...`);
704704
orchestrationResult = await orchestrator.orchestrate(repoPath, 'base', { analysisMode: 'complete' });
@@ -767,7 +767,7 @@ async function runLiteE2ETest(scenario: TestScenario): Promise<void> {
767767
// CRITICAL: We scan ALL files on BOTH branches for accurate comparison
768768
// The categorization logic (EXISTING_REST, RESOLVED) requires comparing ALL issues
769769
// from both branches, not just changed files
770-
const { getModifiedFilesBetweenBranches } = await import('../../src/two-branch/utils/git-utils.js');
770+
const { getModifiedFilesBetweenBranches } = await import('../../src/two-branch/utils/git-utils');
771771
const modifiedFiles = getModifiedFilesBetweenBranches(repoPath, defaultBranch, prBranchName);
772772
console.log(` 📝 Modified files: ${modifiedFiles.length} (sample: ${modifiedFiles.slice(0, 3).join(', ')})`);
773773

@@ -967,7 +967,7 @@ async function runLiteE2ETest(scenario: TestScenario): Promise<void> {
967967
console.log(` 👤 PR Author: ${prAuthorInfo.author}`);
968968

969969
// SESSION 27 FIX: Use dynamic default branch detection (main/master/trunk)
970-
const { detectDefaultBranch } = await import('../../src/two-branch/utils/git-utils.js');
970+
const { detectDefaultBranch } = await import('../../src/two-branch/utils/git-utils');
971971
const defaultBranch = detectDefaultBranch(repoPath);
972972

973973
const metadata = {

0 commit comments

Comments
 (0)