Technique 5: Fail tests when there’s an unknown console error
Great technique! Especially useful for type checking props passed into Vue component. Vue component checks types at runtime but only outputs to console. This catches those errors for me.
Technique 5: Fail tests when there’s an unknown console error
Great technique! Especially useful for type checking props passed into Vue component. Vue component checks types at runtime but only outputs to console. This catches those errors for me.
@Prop() readonly msg!: string
msg! - "definite assignment assertions", even readonly, even nothing assigned, would not be undefined.