The below configuration in npmrc file suppresses the error for unhandledPromiseRejection after migration from node 14 to node 16.
.npmrc node-options="--unhandled-rejections=none"
But in bazel using jest_test, unsure where to configure this. Can we do it with jest_test or package.json or jest.config.js
How and what is the appropriate way to do this?
tried to import .npmrc file in npm_install of rules_nodejs library with version 5.x version. But it is just copying registry url and ignoring other configs.
Is that a permission issue or if rules_nodejs npmrc is getting overridden? or anything else i am missing here?
Is there a way we can set this environmental variable NODE_OPTIONS using jest.config.js?
from How to configure unhandled-rejections for jest in bazel
No comments:
Post a Comment