Migration steps & Remove all HTML Comments
Breaking changes to API
- none
 
Breaking changes to snapshots
- none
 
New Features
- You can now opt in to removing all HTML comments from your snapshots. This is disabled by default, as there is some minor value in seeing placeholder comment blocks that represent hidden v-if elements. However, showing/removing HTML comment blocks is mostly personal preference.
 
If you prefer to remove them:
vue.config.js
module.exports = {
  pluginOptions: {
    jestSerializer: {
      // Set this to true for to remove all HTML comments like <!-- asfd -->
      removeComments: false
  }
};You will need to update your snapshots. Run your test command with -- -u at the end. Such as npm run unit -- -u. This should auto-update your snapshots.
Bug fixes
- none
 
Maintenance
- Updated the documentation
 - Created new test for the new feature
 - Updated Vue-Test-Utils to beta 31 (released a few hours ago)
 - Added "v2 to v3" migration steps to README.md