-
Notifications
You must be signed in to change notification settings - Fork 276
Closed as not planned
Labels
bugSomething isn't workingSomething isn't working
Description
Defining a prop named attributes on a stubbed component throws a warning.
Failed setting prop "attributes" on <child-component-stub>: value test123 is invalid:
https://stackblitz.com/edit/vitest-dev-vitest-wqbs9d?file=test/basic.test.ts
import { defineComponent } from 'vue';
import { mount } from '@vue/test-utils';
const ChildComponent = defineComponent({
props: {
attributes: {
type: String,
default: null,
},
},
});
const ParentComponent = defineComponent({
components: { ChildComponent },
template: `<ChildComponent attributes="test123" />`,
});
test('it stubs component', () => {
const wrapper = mount(ParentComponent, { shallow: true });
});Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working