What are “stubbed child components” in Vue Test Utils?

后端 未结 2 1131
北荒
北荒 2021-02-08 14:50

Vue Test Utils has an API method called shallowMount() that:

...creates a Wrapper that contains the mounted and rendered Vue component, but w

2条回答
  •  野的像风
    2021-02-08 15:33

    You can find more information about stubbed components in this unofficial testing guide for Vue.

    https://lmiller1990.github.io/vue-testing-handbook/#what-is-this-guide

    In short:

    A stub is simply a piece of code that stands in for another.

    The Vue Test Utils information also has some information about shallow mount:

    https://vue-test-utils.vuejs.org/guides/#common-tips

    The Vue Test Utils is lacking quite a bit of context though.

提交回复
热议问题