Closed as not planned
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 });
});