You’ve probably found your way to this post because you're trying to create mock code for tests that use the Jest framework and are having difficulty getting your mock to work the way you want. This post focuses on why you might choose one Jest method over another to create a mock—and how to use it—so you can work and write tests more quickly.
Subscribe
Get our best content on how to build better apps.
Subscribe
Get our best content on how to build better apps.
Got product development questions?
Join us on
Discord
How to Set Up Authentication for a React App with Auth0
Authentication is a critical part of any web application. It's important to ensure that user authentication is secure, scalable, and easy to manage.
In this blog post, we'll explore how to set up authentication with Auth0 in a React project. The @auth0/auth0-react SDK was recently updated to version 2.1.0, so that is the version we will be walking through. The process is the same for previous versions, but some of the props in the Auth0Provider have changed.
![Christina Labay](https://www.bitovi.com/hubfs/People/christina-labay.jpg)
Christina Labay
Angular 16 Just Dropped a Long Overdue Feature
The Angular team just released an exciting new major version of Angular that comes with many new features. One of these features has been something that the Angular community has wanted for a long time, and we've inched closer and closer with each major version. I'm talking about the takeUntilDestroyed
operator.
![Mark Thompson](https://www.bitovi.com/hubfs/People/mark-thompson.jpg)
Mark Thompson
Don’t Overload the API: Sequential & Batched Promises
The other day I was uploading a lot of content, including images, to a 3rd party service. I put together all my objects and mapped through them to fire off requests. Nearly immediately, I blew past the API rate limiter, and my requests started failing. Oops.
![Ryan Spencer](https://www.bitovi.com/hubfs/Ryan%20Spencer.jpeg)
Ryan Spencer
Developer
Conflict-Free Leadership: Emotional Intelligence [Part 3]
Clearly defining the roles, goals, and expectations for a project is an important step in becoming a trusted workplace leader. A clear vision of the project and the steps you and your team will take to get there are invaluable. But it’s only one side of the proverbial coin.
Travis Draper