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

Produces warning for jest 25.5.0 #350

Open
bogdan opened this issue Apr 29, 2020 · 0 comments
Open

Produces warning for jest 25.5.0 #350

bogdan opened this issue Apr 29, 2020 · 0 comments

Comments

@bogdan
Copy link

bogdan commented Apr 29, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant