I am currently working on a VUE component that takes in a prop of type Number
. I am trying to write a test, using vue test utils and jest, to cover the scenario where the prop is not a number and see how it renders in such a situation (let's say the value is an A
character). The problem I am encountering is that the test runner displays a warning message:
[Vue warn]: Invalid prop: type check failed for prop "count". Expected Number with value NaN, got String with value "A".
While I understand why this warning occurs, I still want to have the test in place without the warning message showing up.
Therefore, I am searching for a way to ignore or suppress the warning when running tests. Is there a way to accomplish this? Thank you.