RAZINJ Dev
  • Home
  • #BitCode
  • Web
  • Mobile
  • Linux
  • Self Hosted
  • Git
  • Docker
Subscribe
How to Mock process.env in Jest
Web

How to Mock process.env in Jest

Learn how to mock environment variables in a NodeJs project while implementing Jest tests that depend on environmental variables. 🌐You can find the source code at the end of the post. Table of contents * What Is process.env? * Why Mock process.env? * Mock process.env in Jest Tests * Conclusion What
Jan 15, 2023 4 min read
JSON Stringify - The Optional Parameters
BitCode

JSON Stringify - The Optional Parameters

We all use JSON.stringify() method for various reasons, but very few know about it's hidden optional parameters, and in this BitCode we will discover them with examples. Table of contents * Normal Usage * Whitelist Object's Properties * Replacer Function * Output Spacing Normal Usage Before we start, this is just a quick
Jan 10, 2023 2 min read
Post cover displaying the title and the Git logo
BitCode

How to Use Git Stash Command

Save your work, without committing a crime!
Aug 20, 2022 2 min read
Post cover displaying Redux and React Native logos
Mobile

How to Setup Redux in React Native

Redux, Redux Persist, Async Storage and React Native
Jul 20, 2022 4 min read
Post cover displaying React logo
Web

How to Implement Dark Mode in React Using Context

Dark Mode in React & TailwindCSS
May 14, 2022 5 min read
Post cover displaying the title
BitCode

How to Create an IT Blog Post

The Whole Process in an Image
May 8, 2022 1 min read
Post cover displaying the title and the Javascript logo
BitCode

Javascript's Rest Parameters

Rest Parameters, Explained!
May 4, 2022 1 min read
Post cover displaying the title and the Javascript logo
BitCode Featured

Javascript's Spread Syntax

Spread Syntax, Explained!
Apr 28, 2022 2 min read
Post cover displaying the Docker logo
Self Hosted Featured

How to Self Host a Docker Registry

Now Unlimited and Private
Mar 26, 2022 3 min read
Post cover image displaying the Docker and Strapi logos
Web Featured

How to Run Strapi 4 in a Docker Container Using Docker Compose

The Latest Version in a Container
Feb 4, 2022 5 min read
Post cover image displaying the Docker logo and post title
Docker

Get Docker Images and Containers Updates Notifications

You Won’t Miss an Update From Now On!
Nov 24, 2021 4 min read
Post cover image displaying the Git logo
Git Featured

How to Setup Multiple Git Accounts in the Same Machine

Separate Your Personal and Work Projects
Oct 2, 2021 3 min read
Post cover image displaying the Tux logo
Linux Featured

Learn and Implement Linux Server Security Best Practices

Learn How to Secure and Harden Your Linux Server
Aug 15, 2021 4 min read
Post cover image displaying the Docker and Apt-Cacher-NG logos
Linux Featured

Build and Run Apt-Cacher-NG Proxy in a Docker Container

Speed up Your Network With This Caching Server
Jul 4, 2021 4 min read
Post cover image displaying the Angular logo
Web Featured

Configure an Angular App to Support Multiple Environments

Add Multiple Environments to Your Angular App in Easy Steps
Jun 12, 2021 3 min read
Post cover image displaying the Mailtrain logo
Self Hosted

Install a Powerful Mailing Service Mailtrain With Docker Compose

A Self Hosted Marketing Tool, Free and Open Source
Jun 10, 2021 2 min read
Post cover image displaying the Wallabag logo
Self Hosted

How to Install Wallabag a Self Hosted Alternative to Pocket

Install Your Own Pocket Alternative Service
Jun 8, 2021 2 min read
Post cover displaying the Gotify and Docker logos
Self Hosted Featured

How to Install Gotify Notification Server With Docker Compose

Learn How to Install Gotify Notification Server With Ease Using Docker Compose
Jun 6, 2021 2 min read
RAZINJ Dev © 2023
  • About us
  • Contact us
  • Privacy Policy
  • Terms & Conditions
Support