Skip to content

Support for Parse.File.save() #79

Description

@focomoso

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions