Skip to content

Conversation

@mohammedahmed18
Copy link
Contributor

Summary

  • Skip module system conversion (CommonJS ↔ ESM) only when ts-jest is installed AND the current language is TypeScript
  • ts-jest handles module interoperability natively, so conversion is unnecessary and can break valid imports
  • For non-TypeScript projects or projects without ts-jest, conversion still happens as before

Test plan

  • Added TestTsJestSkipsConversion test class for ts-jest scenarios
  • Added TestModuleSystemConversion test class for non-ts-jest scenarios
  • All 66 tests pass

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Saga4 Saga4 merged commit e957843 into main Feb 3, 2026
7 of 27 checks passed
@Saga4 Saga4 deleted the fix/js-skip-module-conversion-for-ts-jest branch February 3, 2026 12:12
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.

3 participants