7 ways to make your Vue unit tests better by Natalia Tepluhina

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 9

  • @isfland
    @isfland 2 роки тому +23

    Great tips, thanks!
    Btw, to reduce lines of code in your unit tests, instead of
    findIncrementButton().trigger('click')
    await nextTick()
    you can use
    await findIncrementButton().trigger('click')

  • @ribl1000
    @ribl1000 2 роки тому +5

    The changes you mention are so subtle but so obvious when you point them out! Also, your pace of explaining these concepts is awesome!

  • @ajotel94
    @ajotel94 2 роки тому +4

    Wow, that's really something! Love how simple is that and at the same time - full of content, concise, meaty! I wish more presentations be like that! 🥰

  • @l2cri
    @l2cri 2 роки тому +4

    Thanks..very helpful..

  • @leuhenry8031
    @leuhenry8031 2 роки тому

    Thanks from TianJin China

  • @jo0o0oke3e3er
    @jo0o0oke3e3er 2 роки тому

    14:15 i dont really agree withyou. sometimes you want to make sure that an event has an hook with a particular method. This check allow to aware that this hook could be potentially broken during some changes... and then change the unit test accordingly or, eventually, fix the source code.

  • @alexanderopalic1873
    @alexanderopalic1873 2 роки тому

    thank you awesome talk