-
Notifications
You must be signed in to change notification settings - Fork 55
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
[hoodie-account-server] replace "pouchdb" with "pouchdb-core", "pouchdb-mapreduce" and "pouchdb-adapter-memory" #59
Comments
I can work on this! |
I wrote the code required a while ago, but the testing process is kind of confusing, as it gets stuck at the |
Thanks for looking into it @nistath The issue is all yours :) I’ve invited you to our Camp repository, you can accept my invitation at https://github.com/hoodiehq/camp/invitations Once accepted, you can assign yourself to this issue and check off the checkboxes above. Enjoy 🐕 Can you tell us your node & npm version? Run |
@LowProfileDog Here's what happens when I run the test. $ npm test
Reading TAP data from stdin (use "-" argument to suppress) and it keeps mirroring my input forever. |
The problem is that this works even if pouchdb is not installed. I have no idea if my new code works or not, although it is written according to the pouchdb documentation. |
I'm on node 6.5.0 and npm 3.10.3 on Windows 8. |
@nistath I don’t know why the test is behaving that way for you yet, I’ve never seen that behavior before. One thinking mistake I found is that we don’t want the memory adapter, instead we want the http adapter, otherwise PouchDB won’t send requests and our CouchDB mocks will stop working You can also try to run a single test. I’m not sure if it’s the same on Windows, but on mac you can execute the binary from the node_modules folder directly, for example ./node_modules/.bin/tap tests/integration/routes/no-cookie-header-test.js Will only run the tests defined in Can you check if that helps in any way? |
yeah fix was simple, I updated your PR: hoodiehq/hoodie-account-server#213 and will merge it once CI passes, thanks :) |
That specific test ran successfully. I think there's one test that does that, and goes in an infinite loop not letting the other tests run. Either that, or TAP has some issues. |
all good, fixed via hoodiehq/hoodie-account-server#213 |
🎃💻👕 Hacktoberfest: Trick or Treat!
If you haven’t yet, sign up for Hacktoberfest to earn an exclusive T-Shirt. Plus I’m sure we can teach you a cool trick or two in the process
🤔 What you will need to know
You should have worked with JavaScript, Node.js and Testing. If you haven’t yet, we recommend the JavaScript Track on exercism.io
hoodie-account-server currently has PouchDB in its devDependencies. We need PouchDB for testing.
But pouchdb comes with all sorts of features that we don’t need, but they slow down the installation time and also install native dependencies that are sometimes hard to setup, especially on older windows machines.
Luckily, our friends at PouchDB created custom builds. That allows us to only pick exactly the features that we need, which are
🎯 The Goal
Minimise the installation time and requirements by replacing the
pouchdb
package with the packages listed above.📋 Step by Step
If this is your first, welcome 🎉 😄 Here is a great tutorial on how to send a pull request using the terminal.
Please 🙏 only claim if you want to start working on it during the event.
Once claimed we add you as contributor to this repository.
In a nutshell: be patient and actively kind with us 😊
up for grabs
label within progress
.pouchdb
with the other packages in package.json and tests/integration/utils/get-server.js#L6test: replace pouchdb with custom build for testing
and push it either to your fork or push your new branch.closes hoodiehq/camp#59
in the description.in progress
label withready
. Ask in comments for a review :)🤔❓ Questions
Ping us in the Hoodie Chat or on Twitter
The text was updated successfully, but these errors were encountered: