Skip to content

Bug: The execution order of watch is different from that of the browser #2686

Closed as not planned
@jevin98

Description

@jevin98

Describe the bug

Clone repo.
Run pnpm test
The result is

1
1
2
3
1
2
3

Run pnpm dev In the browser, click button 1 and button 2 in sequence, and get the following sequence

1
3
1
2
3
1
2

Reproduction

https://github.com/jevin98/vue-test-utils-watch-demo

Expected behavior

Environment

 System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12500
    Memory: 6.48 GB / 31.69 GB

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions