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

❌ require.requireActual Causes TypeScript Error in some Tests #332

Open
amirabbas-gh opened this issue Feb 1, 2025 · 0 comments · May be fixed by amirabbas-gh/react-codemod#4 or #333
Open

❌ require.requireActual Causes TypeScript Error in some Tests #332

amirabbas-gh opened this issue Feb 1, 2025 · 0 comments · May be fixed by amirabbas-gh/react-codemod#4 or #333

Comments

@amirabbas-gh
Copy link

🐛 Bug Report

Description

When running tests using npm run test, the following TypeScript error occurs in some of the tests:

Property 'requireActual' does not exist on type 'Require'.

This happens in test files where require.requireActual is used:

const removeContextProvider = require.requireActual('../remove-context-provider');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant