Skip to content

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

Open
amirabbas-gh/react-codemod
#4
@amirabbas-gh

Description

@amirabbas-gh

πŸ› 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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions