-
Notifications
You must be signed in to change notification settings - Fork 161
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
Asynchronous support? #185
Comments
I just posted the exact same thing as an issue on the karma github. I'm not quite sure if it is specific to karma or to the karma-jasmine plugin. Have you had any luck finding a fix or workaround? |
I have not found a fix for this -- besides getting the specs green 😺 😭 |
@juanca @daanstolp could you provide gist which reproduces this problem Thanks P.S. Is it work in Jasmine as expected? (Without karma) |
Yeah, it does work without karma. I'll post steps tomorrow since I'm not near a working computer today. |
Hi @maksimr, see my previous comment with the link to the karma issue. It describes the exact steps to reproduce. The main culprit is the Debug.js file of the karma debug runner. |
Finally on a working computer, will try to get a public repo setup by EOD. Something I want to capture before it leaves my head: I'll mess around with the iframe options in Karma in case that is correlated with our issues. EDIT: |
Repo set up @ https://github.com/juanca/karma-jasmine-async-bug README contains SHAs which showcase how it works with just Let me know if y'all need anything else. |
As I mentioned before, this issue is not particular to Jasmine, but can be traced to the Debug.js file of the karma debug runner. I have published a pull request with a fix, which has just now been accepted and merged into master. See the issue here and the pull request here. |
Awesome work! Thank you for the fix! |
Not really sure how to figure out what is at fault but I figured this might be a decent spot to ask for advice:
This is the test file:
Expected behaviour
1 failure, 1 success
Actual behaviour
2 failures, 0 success
with the following report:
Environment Details
===
Jasmine keeps catching the thrown exception on all async specs. :( I'm not really sure if
debug.js
is set up correctly for asynchronous specs.If I had multiple asynchronous spec, each would throw the previous uncaught exception.
The text was updated successfully, but these errors were encountered: