4 Matching Annotations
  1. Sep 2020
    1. 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.

    1. @Prop() readonly msg!: string

      msg! - "definite assignment assertions", even readonly, even nothing assigned, would not be undefined.