Victory Asokomehsoks.hashnode.dev·Feb 26, 2024A Practical Guide to Testing React Applications (Unit Tests)Introduction Test Driven Development (TDD) is a beneficial practice for engineers, but in reality, it's not always feasible. However, the initial investment in writing automated tests is worth the effort as it saves you time in the long run. In this ...Discuss·1 like·80 readsReact
Mathanraj Tmathanrajt06.hashnode.dev·Jan 27, 2024Troubleshooting SuperTest Errors: A Quick GuideAre you tired of searching how to solve error such as TypeError: server.close / app.close() is not a function TypeError: Cannot read properties of undefined (reading 'address') TypeError: app.address / server is not a function Attempted to log "S...DiscussSupertest
Sean Coughlinblog.seancoughlin.me·Nov 30, 2023jsdom vs happy-dom: Navigating the Nuances of JavaScript TestingIntroduction JavaScript testing is a crucial part of ensuring that web applications work correctly across different environments. In this context, tools like jsdom and happy-dom are incredibly valuable. They both provide ways to simulate a browser-li...Discuss·4.1K readsWeb DevelopmentJavaScript
Javier Aguilarblog.itsjavi.com·Oct 22, 2023Mocking the IntersectionObserver in Jest for testing React componentsThe IntersectionObserver is a powerful API for tracking elements' visibility within the viewport. Many modern web applications use it to implement lazy loading, infinite scrolling, or other interactions that depend on an element's visibility. When it...Discuss·1 like·502 readsWebDevJest
Mustafa Dalgasft.hashnode.dev·Jun 13, 2023Debugging TypeScript & Jest-DOM Matchers in Vue.jsOne of the joys of modern web development is the seamless integration of various libraries and frameworks. However, every so often, you can run into hitches that send you down the rabbit hole of debugging. Today, I want to share a recent experience a...DiscussVue.jsJest
Serdar ŞENserdarsen.hashnode.dev·Sep 28, 2022How did I test my pagination componentIt was fun testing a component created from scratch by me : ) I was given an interview task to convert a Figma design into a modern React application. I wanted to create widgets from scratch, in order to obtain an easy-to-maintain and easy-to-test co...Discuss·1.4K readsjest dom