parse-mockdb
parse-mockdb copied to clipboard
Support for Parse.File.save()
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: "{}".toString('base64') });
await parseFile.save();
I get no error, but when I try to save the object the file is set on, I get "Tried to encode an unsaved file."
Is there a workaround for mocking parse files? And if not, has anyone looked into what it'll take to mock it. I can look into it, but want to be sure no one else is doing it (or has decided that it's not possible / worth the effort).
If you wanted to send a PR for that, I think that would be great!