Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve require.requireActual TypeScript errors in transform tests #4

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

amirabbas-gh
Copy link
Owner

📚 Description

This PR fixes TypeScript errors related to require.requireActual in multiple transform tests. The issue was originally discussed in reactjs/react-codemod#332.

  1. Fixed remove-context-provider transform test
  2. Fixed remove-forward-ref transform test
  3. Fixed use-context-hook transform test
    These changes ensure that all affected tests run without TypeScript errors.

🔗 Linked Issue

🧪 Test Plan

  1. Ran the test suite after modifications to confirm all tests passed.
  2. Verified correct module resolution in affected transform tests.

@amirabbas-gh amirabbas-gh force-pushed the fix_issue_332 branch 2 times, most recently from e688fa3 to 5787d07 Compare February 2, 2025 19:24
@amirabbas-gh amirabbas-gh force-pushed the fix_issue_332 branch 2 times, most recently from ec1ee2b to 9df34d2 Compare February 5, 2025 20:20
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.

❌ require.requireActual Causes TypeScript Error in some Tests
2 participants