Skip to content

Fix jest console error/Vue warning in unit tests

Deepika Guliani requested to merge dg-fix-console-error-jest into master

What does this MR do and why?

Currently , spec/frontend/diffs/components/app_spec.js is causing vue warnings/console error on master. This MR fixes the warning below

console.error
      [Vue warn]: Invalid prop: type check failed for prop "active". Expected Boolean, got Undefined 
      
      found in
      
      ---> <DynamicScrollerItem>
             <DynamicScroller>
               <DiffsApp>
                 <Root>`

Screenshots or screen recordings

No UI changes

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Run the unit test in this branch spec/frontend/diffs/components/app_spec.js in your terminal vs master branch

See that there are no Vue warnings

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 Deepika Guliani

Merge request reports