Skip to content

Cannot trigger method updated Vue lifecycle #455

Closed
@ghost

Description

Version

1.0.0-beta.11

Reproduction link

https://github.com/dungla4/vue-test-utils-vuex-router

Steps to reproduce

  • Clone repo then run: npm install or yarn install
  • Run command: npm test or yarn test

What is expected?

Should call updated Vue lifecycle method and print in log

What is actually happening?

Not trigger updated method, just trigger mounted method


Normally, updated is triggered when template is changed. I tried to change data by wrapper.setData, or set data directly via wrapper.vm.msg = .. but no luck. This function works well if you run project by command yarn start and click some link at the bottom of page

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