chris-l / mock-couch

A node.js module designed to mock a CouchDB server, mostly for unit testing purposes.
http://chris-l.github.io/mock-couch/
67 stars 44 forks source link

Support for design document update handlers? #34

Open geekytime opened 9 years ago

geekytime commented 9 years ago

Thanks for the great library. I've been looking for something like this for a while!

The docs clearly show that views are supported using addDoc, but it doesn't appear that updates functions are supported when I add design docs that have update handlers in them. We use update handlers to add simple timestamps to our docs. Am I doing something wrong, or is this feature just not supported yet.

Are update handlers a feature that you'd consider supporting, if they don't work already?

chris-l commented 9 years ago

Yes, you are right. This is something Mock-Couch is currently missing and that is important to have. I have started to work on this, so I hope is going to be ready soon.

0x1mason commented 8 years ago

+1

sagivmalihi commented 8 years ago

Also in need of this feature. Can I help maybe?

0x1mason commented 8 years ago

I ended up wrapping PouchDb. A similar approach would take a lot of the implementation pressure off and just allow you to focus in the API.