Skip to content

Produces warning for jest 25.5.0 #350

Open
@bogdan

Description

Jest has a new release that forbids overriding of require.cache:

 console.warn
    `require.cache` modification is not permitted

      at Object.notPermittedMethod (node_modules/jest-runtime/build/index.js:1509:44)
      at node_modules/stealthy-require/lib/index.js:24:33
      at forEach (node_modules/stealthy-require/lib/index.js:10:9)
      at clearCache (node_modules/stealthy-require/lib/index.js:22:5)
      at module.exports (node_modules/stealthy-require/lib/index.js:32:5)
      at Object.<anonymous> (node_modules/request-promise/lib/rp.js:10:19)

jestjs/jest#9841

I have no idea why request-promise would need such a hack. Is there a workaround to prevent the warning for Jest?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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