We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello!
I noticed a problem when using mountSuspended. If a component under test has at least one required property, a typing error occurs.
Code example below:
// component.vue <script setup lang="ts"> defineProps<{ title: string }>() </script> <template> <div> {{ title }} </div> </template>
// component.spec.ts <script setup lang="ts"> import { describe, expect, test } from "vitest" import { mountSuspended } from "nuxt-vitest/utils" import Component from "~/components/component.vue" describe.concurrent("Component", () => { test("Render", async () => { // TypeError below const wrapper = await mountSuspended(Component, { props: { title: "title" , }, }) }) })
The text was updated successfully, but these errors were encountered:
danielroe/nuxt-vitest@24d3f0a
No branches or pull requests
Hello!
I noticed a problem when using mountSuspended. If a component under test has at least one required property, a typing error occurs.
Code example below:
The text was updated successfully, but these errors were encountered: