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

Unhandled Promise Rejections are handled different between Jasmine and Karma-Jasmine #264

Open
drkestel opened this issue Feb 11, 2020 · 0 comments

Comments

@drkestel
Copy link

Raw Jasmine:
image

Karma-Jasmine:
image

In the first example, using only Jasmine, the test fails when an unhandled promise rejection occurs. I would argue this is the correct, expected behavior.

In the second example, using Karma-Jasmine, the test passes with the exact same code.

I'm using mostly out of the box configuration for both examples. I'm attaching both projects zipped if you need to see the full source code.

Can anybody help me understand why, in the second example, that test is passing? What is different once Karma enters the mix? Is this something I can configure somewhere?

Thanks much!

jasmine-test.zip
karma-jasmine-test.zip

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