Skip to content

Please add instructions how to test decorated methods #112

@saidkholov

Description

@saidkholov

Example 1:

@track(props => {
  return { page: props.isNew ? 'new' : 'existing' };
})

The only way to test this decorator is to extract the callback function.

Example 2:
There is no way to jest.spyOn() on the decorated method or override a decorated method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions