-
Notifications
You must be signed in to change notification settings - Fork 5
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
jasmineRequire is undefined: Incompatibility with Jasmine 2.x under Protractor? #3
Comments
My current roundabout solution, run inside
The |
Thanks @pnstickne! I didn't test it with protractor. I have some time to take a look at this either tonight or tomorrow. =) |
@matthewjh hey, did you get a chance to look at this? I just experienced the same issue. |
Hi @massimocode, Yes, I did, and the fix will be in the version being released today or tomorrow. :) |
I encountered this issue as well using jasmine via grunt-jasmine-nodejs. The above workaround seems to be working great for now, inside a helper file loaded before the specs. |
Hey, @matthewjh -- Cool lib. I just thought I'd mention, when I was evaluating this today, I found that the hack described here also works for Node (v6.5.0). Maybe that will help with resolving both issues (this and #8 ). A little detail: I'm developing an Electron app, and using Jasmine in combination with Spectron, which -- like Protractor -- is WebDriver under the hood. Spectron doesn't crank up until my test is already executing beforeEach(), so Jasmine itself is running under Node. I've tried this fix and the "mock object" solution proposed under #8 . Both worked for me, but presumably this would be more robust. (Or not? I just met Jasmine for the first time yesterday, so idk.) I'm not actually using this package going forward, because jasmine-es6 is a better fit for me. But I was really very pleased when I found this earlier today. Eventually I got done() working properly in 'plain' Jasmine, but I would have given up without the confidence your code gave me. So thanks for the boost. |
When running against Jasmine 2.3.2, at call-site of
require('jasmine-promises')
.Versions:
The text was updated successfully, but these errors were encountered: