Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

feat: allow passing mount options in mountSuspended #159

Merged
merged 8 commits into from
May 7, 2023

Conversation

maartenvanhunsel
Copy link
Contributor

@maartenvanhunsel maartenvanhunsel commented May 7, 2023

This PR adds mount support for vue-test-utils mount function. (See https://github.com/danielroe/nuxt-vitest/issues/87)
Mostly of the work has been done by @ghazialhouwari. (https://github.com/ghazialhouwari/nuxt-vitest)

Tests haven't been tested cause of the following issue:

 Cannot read properties of null (reading 'scope')

Looks like it's a SSR issue and the component is missing an active currentInstance, see vuejs/core#7402 for more information.

See screenshot for Vue warnings:
Schermafbeelding 2023-05-07 om 14 20 46

Copy link
Owner

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you ❤️

@danielroe danielroe changed the title Mount options support feat: allow passing mount options in mountSuspended May 7, 2023
@danielroe danielroe merged commit b0c478a into danielroe:main May 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants