react-codemod icon indicating copy to clipboard operation
react-codemod copied to clipboard

❌ require.requireActual Causes TypeScript Error in some Tests

Open amirabbas-gh opened this issue 8 months ago • 0 comments

🐛 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');

amirabbas-gh avatar Feb 01 '25 15:02 amirabbas-gh