Add common Vue plugins to describeComponent wrapper

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from gitlab-ce!23477 should be addressed:

  • @pslaughter started a discussion: (+1 comment)

    thought: One of the use cases of createLocalVue is setting up the Vue with any necessary plugins (see vue-test-utils guide). If you're cool with it, could we address this in a later iteration?

    draft: I can see the following functions:

    • factory :: options => wrapper
    • factoryWithVue :: (Vue => Void) => options => wrapper
    describe(..., { factoryWithVue } => {
      const factory = factoryWithVue(localVue => {
        localVue.use(plugin);
      });
    
      it(..., () => {
        const wrapper = factory(...);
      })
    });
Edited by 🤖 GitLab Bot 🤖