Skip to content

fix: resolve duplicate exports and case sensitivity issues#187

Merged
imjuni merged 2 commits intomasterfrom
develop
Mar 2, 2026
Merged

fix: resolve duplicate exports and case sensitivity issues#187
imjuni merged 2 commits intomasterfrom
develop

Conversation

@imjuni
Copy link
Owner

@imjuni imjuni commented Mar 2, 2026

Summary

  • Fix duplicate export statements in create mode processing
  • Resolve case sensitivity issues on macOS/Windows filesystems
  • Add comprehensive test coverage for getCorrectCasedPath function

Changes Made

  1. Duplicate Export Fix: Removed incorrect filenamify() usage from export statement generation
  2. Case Sensitivity Fix: Implemented getCorrectCasedPath() function to handle filesystem case mismatches
  3. Code Quality: Enhanced with orThrow, atOrThrow for safer array/object access
  4. Test Coverage: Added 100% statement coverage tests with proper mocking
  5. Performance: Optimized getSep() usage to call once per function execution

Test Results

  • ✅ All existing tests pass
  • ✅ 100% statement coverage achieved
  • ✅ Windows/Unix path handling properly tested

🤖 Generated with Claude Code

@imjuni imjuni merged commit a782423 into master Mar 2, 2026
4 checks passed
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bd8792f) to head (5fe806e).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #187   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           88        90    +2     
  Lines         2185      2234   +49     
  Branches       424       441   +17     
=========================================
+ Hits          2185      2234   +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant