You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now in your code you can do require('mock.CloudJob')(Parse) and register & start Cloud-jobs as usual.
NOTE: I know this hack doesn't really follow the narrative of this lib, therefore I just figured to post this here (instead of doing a PR which doesn't really fit this lib). It might be useful to someone, or could start a brainstorm for Cloud-jobs in parse-mockdb.
The text was updated successfully, but these errors were encountered:
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 file
mock.CloudJob.js
somewhere:Now in your code you can do
require('mock.CloudJob')(Parse)
and register & start Cloud-jobs as usual.The text was updated successfully, but these errors were encountered: