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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.พ. 2025

ความคิดเห็น • 9

  • @isfland
    @isfland 3 ปีที่แล้ว +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 3 ปีที่แล้ว +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 3 ปีที่แล้ว +4

    Thanks..very helpful..

  • @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.

  • @leuhenry8031
    @leuhenry8031 3 ปีที่แล้ว

    Thanks from TianJin China

  • @alexanderopalic1873
    @alexanderopalic1873 3 ปีที่แล้ว

    thank you awesome talk