-
Notifications
You must be signed in to change notification settings - Fork 312
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 deprecation warnings #122
Conversation
@hboylan I was trying to do as you say on test/setup.js but after i updated mockgoose, some of my tests that they were working perfect before the update, they dont work right now. They show me this.
Anyway it is broken the build. Lets see what's happening.. |
Ah, dang. Thought it was just the linter complaining, but this one also fails. I'm unable to run tests locally right now. My work machine is Winderps without Admin access so it can't do symlinking. 😢 |
@hboylan Hi again. Honestly i think that it would be great that you try to run the test in your local environment before to push. But you could try to push in chuncks.. for example, the commit that it fixes the warnings, i am sure that it would pass the tests.. I have been trying to update mockgoose for a while and always it breaks my app.
Anyway if you dont have time, i would do it for you if you want... Otherwise this commit would have conflicts because you updated "supertest-as-promised" and @Lobosque has deleted this dependency because it is deprecated.. Regards and thank you so munch !! =) |
@maustand You're right, I'll try to push these changes more incrementally from Mac later on. |
@maustand Currently passing locally, also able to run a fresh
|
Could you check here ? it seems there is a problem with a test.
|
I'm unable to reproduce this locally, but after researching a little it appears that there's an uncaught error being thrown when mongoose tries to create a document after the connection has closed. The failed test also hints at
|
2 similar comments
I am going to try reproduce the error again. Lets see.. I will update another time the mockgoose dependecy and i will apply those changes and i will let you know !. Thanks ! |
@hboylan Hi man again !. I have been doing my own test and sadly i have to tell you that it is broken. Firstly i tried to update all my dependencies. changes on .babelrc and test/setup.js ect.. in my personal project as you did it in your PR.
So i thought that probably there is a problem with my personal project and it is dirty but i downloaded your fork and after npm install, i ran the tests and whola ! ` FAIL src/api/all-user/index.test.js (153.317s)
● POST /all-users 201 (user)
● POST /all-users 201 (user)
● POST /all-users 401
● POST /all-users 401
● GET /all-users 200 (user)
Same problem... Anyway it is very weird about the last commit has fixed the building and it is not broken anymore. In other hand i think that it would be great to split your changes in chunks (PR;s) because this problem with mockgoose, it is making a lots of troubles. Probably your improvements and package.json update would work perfect. Regards |
Maybe something related to #106 (comment)? |
I haven't seen that specific error, but believe that all of the issues stem from Mockgoose. Was seeing the topology error pop up randomly while developing my rest app. Looks like reverting to |
Just kidding ^^ "MongoError: topology was destroyed" still outputs randomly. Looks like a synchronization issue somewhere. Can't seem to actually catch the error in |
mongo.options
for connections_package.json
packages as subset withinpackage.json
for thorough testingsinon.stub()
referencebabel-preset-env
reference