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.