react-codemod
react-codemod copied to clipboard
fix: resolve TypeScript and Jest test issues in transform tests
๐ Description
This PR addresses multiple issues related to TypeScript errors, Jest test failures, and incorrect fixture names in transform tests. The main updates include:
-
Fixed TypeScript errors related to
require.requireActualin multiple transform tests - Fixed Jest test failures in transform tests
-
Updated
jscodeshiftto the latest version - Fixed incorrect TypeScript test fixture names
These changes ensure that all affected tests run correctly without TypeScript or Jest errors.
๐ Linked Issue
๐งช Test Plan
- Updated
jscodeshiftand verified that all transforms still function correctly. - Ran the full test suite to confirm all Jest and TypeScript errors are resolved.
- Checked that all fixture names are correctly aligned with test cases.