Skip to content

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

3 participants