expect(wrapper.html()).toBe(`<div>id:foo;other:fixed</div>`)
})
+ it('inherit attributes', async () => {
+ const { wrapper } = await factory(routes.withIdAndOther, {
+ 'data-test': 'true',
+ })
+ expect(wrapper.html()).toBe(
+ `<div data-test="true">id:foo;other:fixed</div>`
+ )
+ })
+
it('can pass a function as props', async () => {
const { wrapper } = await factory(routes.withFnProps)
expect(wrapper.html()).toBe(`<div>id:2;other:page</div>`)
export const RouterViewImpl = /*#__PURE__*/ defineComponent({
name: 'RouterView',
+ // #674 we manually inherit them
+ inheritAttrs: false,
props: {
name: {
type: String as PropType<string>,