parse-mockdb
parse-mockdb copied to clipboard
Fully Mocked in-memory Parse Database Implementation
### Problem The `afterSave` hook in **Parse MockDB** behaves differently to a real Parse Server (v4.4.0 at time of writing). In a real server, the `afterSave` hook will provide the...
This is my proposed fix for #91. Happy to remove some of the extra test scripts and documentation; wanted them there to start with so I couldn't lose them and...
When running `Parse.Schema.all()`, `queryFilter` was hit with `where` being undefined. Simply check if `where` is truthy before checking `where.$or`.
I am seeing an issue where saving a custom class that extends Parse.Object results in the ```You need to call Parse.initialize before using Parse.``` error message when the ```_CoreManager``` tries...
I didn't really find a way to call cloud jobs using this lib: ```(node:9393) UnhandledPromiseRejectionWarning: TypeError: Parse.Cloud.job is not a function``` This is my temporary solution by just adding this...
This is a combo question / feature request. I just want to confirm that Parse.File.save() doesn't work on marse-mockdb. When I do: ``` const parseFile = new Parse.File('test.json', { base64:...
it looks busted.... https://github.com/HustleInc/parse-mockdb/blob/master/src/parse-mockdb.js#L699 the first if does something, but doesn't return anything.... maybe its doing something to the passed in ref? in any event, a unit test couldn't hurt....
When an object is 'saved' for the first time, its ACL should be set to Public Read/Write. This is necessary to test that the `beforeSave` sets ACL's as appropriate.
It looks like `ParseMockDB.registerHook` expects a promise, even though regular Cloud Code beforeX handlers are of type `function(request,response)`. ~~The contract should be identical to Cloud Code's for fidelity.~~ callbacks are...