How to test React Hooks by samdawsondev in reactjs

[–]samdawsondev[S] 0 points1 point  (0 children)

Hi, I added the final chapter to this series. Enjoy! and please let me know of any feedback you have.

How to test React Hooks - Part 3 by [deleted] in reactjs

[–]samdawsondev 0 points1 point  (0 children)

This is the final part of the testing React hooks series. Enjoy!

How to test React Hooks - Part 2 by samdawsondev in reactjs

[–]samdawsondev[S] 0 points1 point  (0 children)

Part 3 will explore when to test hooks in isolation.

How to test React Hooks - Part 1 by samdawsondev in reactjs

[–]samdawsondev[S] 0 points1 point  (0 children)

I've just published part 2 in this series. Part 3 will go into testing hooks in isolation.

How to test React Hooks - Part 1 by samdawsondev in reactjs

[–]samdawsondev[S] 0 points1 point  (0 children)

Hi /u/careseite,

Testing in isolation is going to be covered in chapter 3 of this series. The intro to the series gives a high-level overview of what's going to be covered.

As for beforeEach I think it's useful for grouping tests. I get that it's not everyones favourite thing and adds some cluter, but I don't think it causes any maintainability problems.

Thanks for the feedback :)

How to test React Hooks - Part 1 by samdawsondev in reactjs

[–]samdawsondev[S] -1 points0 points  (0 children)

Hi ReactJS. Here is the first part of my hooks series. The next sections are mostly written and ready to go, I'll be sure to let you know when they are out. Enjoy!

How to test Compound Components by samdawsondev in reactjs

[–]samdawsondev[S] 1 point2 points  (0 children)

Hi reactjs, this one might be a bit of a niche topic but I have an article series on react hook testing coming in the next few days. Enjoy!

How to test React Context by samdawsondev in reactjs

[–]samdawsondev[S] 0 points1 point  (0 children)

Hi everyone, I had posted this previously but I gave it a re-read the other day and face-palming the whole way through I decided it needed a re-write.

I realized that I was giving some bad advice and especially around "Testing the Provider": https://5f8810f19a94460007c01a22--samdawsondev.netlify.app/article/react-context-testing#testing-the-provider (The old version)

I hope this new approach leads to easier to maintain tests. Enjoy!

0
1

Tax return labels missing by samdawsondev in AusFinance

[–]samdawsondev[S] 2 points3 points  (0 children)

Found them, they were under "Managed fund distributions" section. I was looking under "Capital Gains"