-
Notifications
You must be signed in to change notification settings - Fork 2
process.cwd() conflicts in cleanup #4
Comments
They all sounds good to me 🙂 I don't really work on or use this project anymore, so any updates are very welcome ✨ |
Glad to hear it! Expect some PRs then 😄 |
@rrdelaney PRs #5-#7 have been created. Once everything is merged and |
Is there a reason to commit |
@rrdelaney I'm not sure, I haven't used lockfiles much. It would ensure that testing is in a consistent environment, and fully inform end-users which version we installed for passing tests, if they have concerns over library mis-matches. |
I think it would be better to test without a |
Thanks for cleaning all of this up 😅 I've added you as a collaborator on GitHub for the future 🙂 I don't use this anymore, and the more maintenance the merrier! Do you have an account on npm? I can give you publishing rights to the package |
@rrdelaney Sorry, I've been on vacation and lost track of this :) You're welcome! Happy to be a collaborator. I'm @CodeLenny on npm. |
Hope the vacation was good! I'll give you publishing rights on npm tonight. I haven't released any of your changes, but feel free to do so |
@rrdelaney vacation was great, thanks! I'll publish the changes in the near future. |
@rrdelaney I've published the changes, so I'll close this issue. It looks like there might be some other bugs that I'm hitting, but I'll open other issues/PRs to deal with those if needed. Thanks! |
cleanup()
nukes all database storage directories inprocess.cwd()
, which would likely cause conflicts between files.In newer versions of AVA,
process.cwd()
returns the directory containingpackage.json
, not the directory containing the test file (avajs/ava#1074), which makes the problem even worse, as all test files will conflict with each other.I'm planning to make a series of changes to update
ava-rethinkdb
, including fixing this issue.ava-21
ava
indevDependency
to use0.21.0
, the latest versionava
topeerDependencies
with versions0.21.x
and< 0.21.0
, so users can't use newer versions of AVA with breaking changes..travis.yml
file for Travis CI testing, testing against Node.js 6 and 8 and AVA v0.15.2 and v0.21.0test-instances
ava-rethinkdb
from multiple instances, to simulate the final example in the READMEfix-cwd
init()
andcleanup()
to be less dependent onprocess.cwd()
Potentially use
${process.cwd()}/${process.pid}/${port}
, and then nuke${process.pid}
incleanup()
Let me know if these changes are appealing, and I'll work on some PRs! I'm currently just drafting changes in my fork, so I'll probably need to take a second pass to make sure that I conform to your style.
The text was updated successfully, but these errors were encountered: