Skip to content

How do I test a publication that uses this.userId ? #171

@NaderIkladious

Description

@NaderIkladious

Hello,

I have this problem that I want to test a publication that only return content for current logged in user (this.userId)

how do i test it without mocking it? is there a way to set this.userId for publication in test ?

Thanks in advance,
Nader Ikladious.

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