-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi, just using vue-announcer (v3.1.5) in a component like:
const { assertive } = useAnnouncer();
(or polite etc) throws an error during the component test:
If you only import the vue-announcer there will be no error.
The component is under a Vue 3 application using TypeScript, Composition API, and SFC (with <script setup>
). The tests are with Vitest, also written in Typescript.
The skeleton of my component test is:
import { describe, it, expect } from "vitest";
import i18n from "../../i18n";
import { mount } from "@vue/test-utils";
import MyComponent from "./MyComponent.vue";
import type { User } from "./User";
it("emit profile-saved", async () => {
const wrapper = mount(Mycomponent, {
global: { plugins: [i18n] },
props: { user: { ...user } },
} as any);
Metadata
Metadata
Assignees
Labels
No labels