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

[Bug]: firstValueFrom rxjs promise is not handled properly #1977

Closed
jordibaliellas opened this issue Feb 19, 2023 · 0 comments · Fixed by #2002
Closed

[Bug]: firstValueFrom rxjs promise is not handled properly #1977

jordibaliellas opened this issue Feb 19, 2023 · 0 comments · Fixed by #2002

Comments

@jordibaliellas
Copy link

Version

13.0.0

Steps to reproduce

Example steps to reproduce:

  1. clone my repo: https://github.com/jordibaliellas/angular-jest-29
  2. npm i
  3. npm run test

You will see that it passes the test, but ngzone prints some error as it was not handled.

If you try this with jest 28 and jest-preset-angular@12 it works properly.

Expected behavior

I expect to pass the test without printing any console.error

Actual behavior

It prints a console.error:
console.error Unhandled Promise rejection: error ; Zone: ProxyZone ; Task: null ; Value: Error: error

Additional context

No response

Environment

System:
    OS: macOS 13.1
    CPU: (8) arm64 Apple M1 Pro
  Binaries:
    Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node
    npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm
  npmPackages:
    jest: ^29.4.3 => 29.4.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants