There's a concept called building for throwawayability in the front-end. If you're using Testing Library for tesing front-end components and you're not writing a big app consider whether or not you're using your time wisely. As by the time you finish perfecting your unit tests you might have to throw it all away.