what are you looking for?

JONDJONES.COM
  • Books
    Umbraco
    • Umbraco .NET Core Mastery
    • Umbraco V8 Secrets Exposed
    CMS
    • Contentful - The Missing Manual
    • Episerver Missing Manual
  • CMS
    Umbraco
    • V9 Tutorials
    • V8 Tutorials
    • V7 Tutorials
    • Ultimate Umbraco Guide
    • BOOK: Umbraco .NET Core Mastery
    Episerver
    • Tutorials By Published Date
    • Tutorials By Category
    • Ultimate Episerver Guide
    • BOOK: Episerver: The Missing Manual
    Sitecore
    • Sitecore Tutorials
  • Programming Tutorials
    React JS
    • Ultimate React Guide
    • Tutorials By Published Date
    • Tutorials By Category
    Javascript
    • Tutorials By Published Date
    • Tutorials By Category
    • CODE: #ILoveJavascript
    C#
    • .NET Core Tutorials
    • Architecture
  • Tactics
    Productivity
    • Productivity Tutorials
    • Ultimate Productivity Guide
    Career Help
    • Career Tips
    • Insights
  • YouTube
  • About
  • Hire Me
    My Services
    • Umbraco Freelancer
    • Episerver Freelancer
    • JAMStack Freelancer
    My Qualifications
    • My Portfolio
    • LinkedIn Profile
    • Stackoverflow CV
    My Company & Experience
    • Digital Prompt
  • Contact

Testing React Apps

  • Homepage
  • Frontend
  • React
  • Testing React Apps
How To Test That Your React Component Is Returning The Correct HTML
How To Test That Your React Component Is Returning The Correct HTML
Mon 18 March, 2019
Useful Code Snippets To Help You Test Your React Components
Useful Code Snippets To Help You Test Your React Components
Tue 19 March, 2019
Code Snippets To Help You Unit Test Forms Written In React
Code Snippets To Help You Unit Test Forms Written In React
Fri 17 May, 2019
What Does the ~ And The ^ Characters Do In My Package.JSON?  YARN Debugging explained!
What Does the ~ And The ^ Characters Do In My Package.JSON? YARN Debugging explained!
Mon 29 July, 2019
Unit Testing React Redux Connected Components
Unit Testing React Redux Connected Components
Tue 1 October, 2019
Running A Single Test Using Jest
Running A Single Test Using Jest
Tue 5 November, 2019
Enabling Code coverage For Jest
Enabling Code coverage For Jest
Tue 31 December, 2019
Testing React Apps

Writing tests can either be a quick 5 minute job, it can also be a few hours of hell.  The differentiator...  is mainly down to how the component has been written.    For a lot of codebases that I come across, writing tests is usually harder than it needs to be.  Codebases that are hard to test, usually occur when the developers in the team think of tests as an afterthought. 

I've been writing and code reviewing tests for over a decade.  Due to that experience I tend to naturally build my components in a test friendly way.  Some people reading this might be test-first evangelist and no developer should write code until a test has been written.   I do agree high-test coverage is an essential part of the development life-cycle, there are situations you just need to get somethings working, then refine it and write tests after you understand a problem is abetter approach.  

In this section you will find code examples and tutorials that will help you to test your react components.

CONTENTFUL BOOK
Contentful - The Missing Manual
NAVIGATION
  • Getting Started With React
  • NPM Packages for React Developers
  • Design Patterns
  • React Tutorials
  • Optimizing React Performance
  • Testing React Apps
  • Understanding React Components
FREE CODING NEWSLELTER
Shit My Websites Down

In this free weekly newsletter, I the best of the week within the world of web development. Links, humour, and tech news direct to your inbox. I won't spam, pinky promise!'

YOU ARE A LEGEND!

You just made.. THE LIST!

.
Help Keep The Site Running!


SUPPORT THIS SITE

Click An Advert

WELCOME

Hi,, I'm Jon, I write articles about creating and optimizing websites to help your business meet its goals. I am a technical architect and technology fanatic by profession. You can find out more about me by joining my newsletter.

Latest Posts
  • New Must Know Lambda Expressions In 2024? Time for a .NET 9, 8 & 7 Review!
  • What's The Best Dev Tool... True DevTools Or DevToys?
  • Umbraco Management API Getting Started Guide
  • Improve Copy And Paste In VS-Code In 5 Minutes

© Jon D Jones