You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existing Jest unit test. /test/unit/core/plugins/auth/actions.js
Describe the bug you're encountering
The unit tests pass, however there are UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'newAuthErr' of undefined
(node:48945) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'newAuthErr' of undefined
(node:48945) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
This might be a problem with the Jest test itself, e.g. not configuring/mocking errActions method.
To reproduce...
Steps to reproduce the behavior:
(Optional) Run single Jest unit test file via testMatch: ['**/test/unit/core/plugins/auth/actions.js'],
See error above
Expected behavior
There should be no UnhandledPromiseRejectionWarning
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Existing Jest unit test.
/test/unit/core/plugins/auth/actions.js
Describe the bug you're encountering
The unit tests pass, however there are
UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'newAuthErr' of undefined
This might be a problem with the Jest test itself, e.g. not configuring/mocking
errActions
method.To reproduce...
Steps to reproduce the behavior:
testMatch: ['**/test/unit/core/plugins/auth/actions.js'],
Expected behavior
There should be no
UnhandledPromiseRejectionWarning
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: