Skip to content

navigateTo assert not working when triggered inside page #668

Open
@henritoivar

Description

@henritoivar

Environment

https://stackblitz.com/edit/github-shyy23?file=pages%2Fmypage.vue

Reproduction

https://stackblitz.com/edit/github-shyy23?file=pages%2Fmypage.vue

Describe the bug

expect(useRoute().path).toEqual('/') fails when navigateTo('/') called within page component. Doesn't fail when called directly in test itself.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closedvitest-environment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions