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
Fix #1651: add support for nodejs experimental-modules stacktraces #1662
Conversation
Please take a look at the CONTRIBUTING document. This pull request right now, doesn't include any tests for the new functionality, or any code changes in Additionally, Jasmine has its own functions to detect "Arrayness" ( Thanks for taking a look at this. Hope this helps. Thanks for using Jasmine! |
Waw, a lot more complex than expected... |
Jasmine's test suite is mostly unit tests right now, so a test that calls |
Hello, Thanks for your reply. I will look if we can build up a "Stacktrace that look like that" :-) To test that in action:
For the travis build, I will look at it when I will have time... Could you perhaps help on that point? |
If we want to add an entry to the travis-ci matrix you should be able to add one with For the unit tests, remember that the thing being formatted doesn't have to actually be Hope this helps. |
Hello This work is too huge for me to take it now. If someone want to take over, please feel free to do so. Jean |
… test framework For Jasmine issue see: jasmine/jasmine#1662
@jehon Thanks for your contribution. Can you provide more information on how to reproduce the problem that this PR solves? I've been unable to coax a stack trace that isn't a string out of Node. Here's what I've done so far:
In all cases Jasmine is able to correctly format and filter the stack trace. |
Thanks for all your trials. It has been a long time, and I didn't see the problem coming back since then. I do remember that, in the time I made that PR, exception handling was still under work in nodejs part. Perhaps it has been solved from they part. I propose that we close this PR. If the problem arise back, someone could find it back and use it if necessary? |
That was my guess as well. I'll go ahead and close this. Thanks again. |
Add support for nodejs --experimental-modules.
Description
When using node --experimental-modules, the stackstrace are not string anymore, they are an array of "CallSites".
Motivation and Context
Jasmine was failing with something like [...] .split('\n') [...]
How Has This Been Tested?
This is difficult to test with the current setup, because you need to restart node with --node-modules.
I did test that by running tests on my own project.
Types of changes
Checklist: