Skip to content

Computed property is not reactive in tests when returning a nestedValue of an object prop #996

Closed
@M3psipax

Description

@M3psipax

Version

1.0.0-beta.25

Reproduction link

https://codesandbox.io/s/j7jlr6q08y?previewwindow=tests

Steps to reproduce

Just run the test.

What is expected?

The second test should pass. The computed property should reevaluate.

The vue component receives an object as prop. It has a computed property that returns a nested value from that object prop.
When changing this nested value, the computed property is not reevaluated in the test's wrapper vm. However, this does work in normal vue runtime.

What is actually happening?

The computed property does not reevaluate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions