Testing React #9: testing Redux connected components

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 11

  • @paulina7497
    @paulina7497 2 года назад

    excellent video, thank you so much

  • @kirillzlobin7135
    @kirillzlobin7135 8 месяцев назад

    What if my component that I test does API call with hook that was generated by Redux Toolkit

  • @ha-component-kit
    @ha-component-kit 2 года назад

    Why would you not want to test the connected component? Just curious, a lot of the time, there could be complex selectors that run on a component in the "mapStatesToProps" section retrieving data from the store, why wouldn't you want to test this with the connected component (which is possible btw)

  • @xiupingwu3952
    @xiupingwu3952 3 года назад

    Why there is not an errow showing "could not find react-redux context value; please ensure the component is wrapped in a " when you render ?

    • @adamwoolf9993
      @adamwoolf9993 2 года назад

      That’s because he imports the component to the test, not the default export. Checkout the bit where he starts writing tests. It’s explained.

  • @taaemoh
    @taaemoh 3 года назад +1

    can u post demo with the same test but for hooks? using useDispatch, and useSelector?

    • @tejuskabadi
      @tejuskabadi 3 года назад

      Did you figure out how to do the same for hooks? Please do share the link if you have. Thanks!

  • @souravsantra4731
    @souravsantra4731 4 года назад

    Very informative.Thank you so much. Can you please share your github link for this session.

  • @anandraut2688
    @anandraut2688 4 года назад

    Can you share link to all these code ? Kudos Thankss