Skip to content

unit testing for cloud code triggers (afterSave, beforeSave ... etc)? #1819

Closed
@benishak

Description

@benishak

I want to test if my code in beforeSave works fine or not

In my beforeSave I can increment or update same fields of the same object or even of a different object, for example if user like a post in my app, I can increment the likeCount in the _User class.

Is there a way to test such kind of code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions