Skip to content

Improve stubs generation for Vue.js 3

Illya Klymov requested to merge xanf-improve-stubbing-once-again-v2 into master

What does this MR do and why?

Improve stubs generation for Vue.js 3

  • properly gather props/model from mixins
  • mimic stub tag naming from @vue/test-utils v1
  • replace function props with "[Function]" (like @vue/test-utils v1 do)

Related issue: Port custom snapshot serializer for Vue from gi... (#386757 - closed)

How to set up and validate locally

Run VUE_VERSION=3 yarn --maxWorkers 6 with and without this MR

Reference commit for before: 723a0da8

Failures Before After
Tests 4692 🎉 4418
Suites 838 🎉 811
Snapshots 241 🎉 237

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Illya Klymov

Merge request reports