DEV Community

loading...

Discussion on: How frontend unit testing turned from a fling to a real thing for me

Collapse
integerman profile image
Matt Eland

Love to see embracing testing! I fell in love with it in my first job, then went away from it to my detriment when I went to a UI-heavy job.

Take a look at Jest snapshot tests when you have some time. They're good for pinning down a wide variety of state without a specific test. I use them for stabilizing a tested environment as I'm adding more specific tests.

You also might want to look into parameterized testing or splitting tests out into multiple tests so that it's not an "all or nothing" type of approach with passes / failures.

Keep on writing!