React Native - Testing with Jest and React Test Renderer

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2020
  • The simplest/fun way to write test case in React Native. With the help of Jest and React Test Renderer, you can easily test your app.

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

  • @Uriel7896
    @Uriel7896 2 ปีที่แล้ว +19

    0:21 - Unit Test
    2:43 - UI Test
    3:52 - State Changes
    5:13 - Async Task
    6:45 - Redux
    7:57 - Axios
    8:29 - React Navigation
    9:17 - Image
    9:36 - Generate Report

  • @Mbates1985
    @Mbates1985 3 ปีที่แล้ว +5

    Good job! Direct and to the point. Teaching almost exclusively with examples. Much better than most of the other tutorials online.

  • @user-jj7mn5ct1s
    @user-jj7mn5ct1s 11 หลายเดือนก่อน

    In just 10 minutes I learned how to use Jest effectively. Thank you very much for the great tutorial and support.

  • @kashyapsp4656
    @kashyapsp4656 3 ปีที่แล้ว +1

    Really superb rbro, you made it simple and understandable. I have tried a lot get the basics and this helped. Kudos

  • @akashgawande7448
    @akashgawande7448 3 ปีที่แล้ว +2

    This is amazing, you covered almost everything thanks!

  • @johnhaupenthal
    @johnhaupenthal 3 ปีที่แล้ว +1

    This is a really great, efficient tutorial. Thanks!

  • @mrjebbar
    @mrjebbar 3 ปีที่แล้ว +1

    Excellent tutorial. Would love to see more about testing, things like graphQL, styled components, redux thunk. Thank you

  • @half-blood-prince
    @half-blood-prince 3 ปีที่แล้ว

    Great video. you covered lot of areas in a short time
    Keep up the good work

  • @WikiPeoples
    @WikiPeoples 2 ปีที่แล้ว

    Excellent. 100 times better than Jest's own documentation. Thank you Bung.

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

    Learned alot from here. Great content! I'm currently facing an issue on testing my component that is using a State Hook.

  • @uwemneku1917
    @uwemneku1917 2 ปีที่แล้ว

    Thanks man, this was simple and easy to understand

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

    Thank you for this video. Please release more long and detailed videos about Jest please!!!

  • @carlconcepcion2700
    @carlconcepcion2700 2 ปีที่แล้ว

    Woah! I think it really helps me to get started. Great tutorial for beginner like me. Thank you

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

    I just subscribed to your channel because of this video. Very informative

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

    Great tutorial, cheers!

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

    Hey BungFerdly, I think you're doing really great job and demo in this Jest sharing. Appreciate if you could dive further in details on Mocking, Why/When Snapshot, other related UT topics. Thanks!

  • @chinnaerumbu
    @chinnaerumbu 2 ปีที่แล้ว +1

    Great tutorial. Thanks 👍

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

    holy damn, this is what i looking for, thank you brah!

  • @deepaksingh-kb1ot
    @deepaksingh-kb1ot 3 ปีที่แล้ว

    Great Video so much packed in breif..thank you

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

    Great tutorial, thank you

  • @aminazgol3918
    @aminazgol3918 ปีที่แล้ว

    Great video you do it fast and easy

  • @vijaysahani7343
    @vijaysahani7343 2 ปีที่แล้ว

    Exactly Point what i need to find...!!! Thank you

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

    Excellent tutorial, please make more tutorials.

  • @lettechtutorials
    @lettechtutorials ปีที่แล้ว

    veryGood Explanation

  • @thaophuong651
    @thaophuong651 3 ปีที่แล้ว +1

    thank you . Video very useful .
    I hope you will releas much video in future about "Test jest"

  • @nimamohamadian9875
    @nimamohamadian9875 2 ปีที่แล้ว

    that's amazing, thank you.

  • @chathurabuddhika5557
    @chathurabuddhika5557 2 ปีที่แล้ว

    damn bro...... you save my life. thank you so much.

  • @daytona400
    @daytona400 ปีที่แล้ว

    Thank you very much for explaining practical examples. I cannot express how grateful I am to see a tutorial that demonstrates a real-life scenario, unlike most of the other tutorials on this topic

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

    This video was helpful

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

    very detailed!

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

    Thanks mate!

  • @delamberty
    @delamberty 3 ปีที่แล้ว +1

    How can you test navigation button? to know that when you click then new screen shows up.

  • @deepaksingh-kb1ot
    @deepaksingh-kb1ot 3 ปีที่แล้ว +1

    Hello, can you please help me to understand how come jest.mock('../analyticUtils') make the "doSomeFirebaseLogic" defined after putting this line as it's not complaining any more about doSomeFirebaseLogic function but that is still undefined isn't it even after putting jest.mock('../analyticUtils')

  • @anabeatriz8835
    @anabeatriz8835 2 ปีที่แล้ว

    thank you very much sir

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

    Super! thanks

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

    god tier video tbh

  • @Dan-mc3eo
    @Dan-mc3eo 3 ปีที่แล้ว

    How do you configure this for typescript expo reactnative project please... been giving me issues for a while now

  • @amiribrahim01
    @amiribrahim01 ปีที่แล้ว

    thank you

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

    do you know maybe how to test method inside component without exporting it?

  • @huydo2707
    @huydo2707 2 ปีที่แล้ว

    Hi I am a newbie. Could you tell me difference between jest and React Test Renderer with react-testing-library?

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

    keren om

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

    Thanks

  • @alessandrob.g.4524
    @alessandrob.g.4524 ปีที่แล้ว

    Man, how do you test onFocus for text input on RN using RTL?

  • @lettechtutorials
    @lettechtutorials ปีที่แล้ว

    Why you are not making new videos ?

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

    hi bro , how bout E2E test automation? and which e2e tools is better for RN itself?! (thats mean easy to setup or usage and not possible to breakdown our app/code)..

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

      Try Detox+TravisCI (reactnativetesting.io). It's quite easy to setup, at least for iOS

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

    Thumbnail is good :D

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

    Please i need help, am getting this error
    × button press (48 ms)
    ● button press
    TypeError: Cannot read property 'children' of undefined
    13 |
    14 | const text = tree.root.findAllByProps({testID: 'myText'}).props;
    > 15 | expect(text.children).toEqual('button pressed');
    | ^
    16 | });
    17 |

  • @DK-ox7ze
    @DK-ox7ze 3 ปีที่แล้ว

    Great video. However you missed testing of Hooks.

  • @teachyourselfcs
    @teachyourselfcs ปีที่แล้ว

    Github link?

  • @rubandharmaraj6094
    @rubandharmaraj6094 ปีที่แล้ว

    Hi Ferdly,
    need help in solving test cases for an function
    Parent.js
    const Parent = ()=>{
    const foo =()=>{
    console.log("hello world")
    }
    return
    }
    Child.js
    const Child =({foo})=>{
    const childFun=(e)=>{
    foo()
    }
    return (
    Nice day
    )
    }
    For given above eg: i need to test foo function in parent component which has been called from child component from childFun

  • @cedrics7374
    @cedrics7374 2 ปีที่แล้ว

    Enjoy writing test cases? I wish that day will come 😋

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

    bang pake subtitel bahasa indo dong ,kita yg orang lokal ga bisa bahasa engres

  • @doniaelfouly4142
    @doniaelfouly4142 11 หลายเดือนก่อน

    thank you