-
Notifications
You must be signed in to change notification settings - Fork 28
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
node 12: bump fibers dependency #152
Comments
@lucetius could you please take a look? Try to bump fibers and see if the tests are running |
as a temporary workaround i was able to proceed by overriding the versions in the npm-shrinkwrap.json |
i should note that [email protected] was present in many chimpy dependencies, not just in a single place... |
I am now also having this issue. Is there a plan to get this updated soon? |
Alright so here's the problem: if we bump Fibers to 4, then Webdriver 4 seemingly becomes incompatible with Fibers, which means we would have to update to Webdriver 5, which is completely different thing, that would require major reimplementation of Chimpy. We might have to shelve this thing, unfortunately. |
@dweller23 Dang! That sucks. What makes Webdriver 5 totally different? I looked at the announcement but it wasn't immediately clear. It seems like they reoganized the API a bit but it's still the same overall idea? |
Right, the API is a bit different, and most probably we would have to use async/await instead of wrapping things with fiber? overall quite a bit of work if you want to keep existing tests. I don't imagine many people want to START a project with chimp nowadays anyway, so all we care (also for our internal purposes) is backward compatibility. |
I wonder if there is a way to strip this package down to just the parts that are relevant to integrating with the server and the cli and then let people handle the browser with whatever existing package they want. I feel like it should be fairly straight forward to upgrade our existing tests to a new webdriver since there should be plenty of examples out there, but re-implementing all the other logic to get the ddp connection to the server for Meteor seems a bit more daunting since it is a bit more specific. That would be a very useful package to have access to, but I don't have nearly the understanding of this package to be able to strip out all the other stuff. |
The ddp stuff is trivia. As a lazy Sunday challenge I decided to see if I could migrate to WebdriverIO 6 from my existing Chimp tests. Minor syntax changes (they even support sync mode so you don't need to use await if you don't want to). The major change being that DDP is as simple as:
Other than that pretty much all of my existing tests worked fine.. |
Ok thanks for the tip on how to get this going! I am definitely looking to move on from chimp, but It’s hard to make the full jump. Meteor definitely needs some new docs on best testing practices since it still suggests chimp which won’t work going forward :/ |
To help future people with this problem here is the code I ended up using. I put this in a file serverInstance
and then called I switched to using webdriver directly which is a much better supported framework. The biggest change I have to make is since my serveri.execute is now a promise I have to do await on all the calls and then if you are using webdriver you have to use their async api which I accomplished by making helper functions like this:
Then you can just all Hopefully this helps other people who are stuck with chimp and want to move on. I don't have to really functionally change my tests much, just have to change the syntax of all the calls. |
Hi, @schlaegerz , can you elaborate more on how to move forward with webdriverio v6? |
So i got rid of chimpy completely since it was no longer doing me any good i directly install webdriver through npm, I have these packages I ended up making a wdio.conf.js file:
and now I run my tests directly with webdriver ./node_modules/.bin/wdio wdio.conf.js --socketPort 3005 --bail Note: |
Trying Meteor 1.9 which includes node 12, requires fibers@4 for Node 12
The text was updated successfully, but these errors were encountered: