Quick start to Jest unit testing

Type of test unit testing integration testing End to end test (E2E) Two key issues need to be addressed to test the React component How to render components to be tested;How to test the rendered components; Shallow rendering For component rendering, Airbnb, as a pioneer in heavily using React, has long proposed a special solution: Enzyme ...

Posted on Wed, 17 Nov 2021 04:16:32 -0500 by basheer12m

Use Hugo and GitHub Pages to quickly build websites

preface As a programmer and a programmer with pursuit, technical influence is indispensable to us. Today, let's talk about how I use Hugo and GitHub Pages to quickly build a personal content output platform. Introduction to Hugo and GitHub Pages Hugo : the world's fastest website construction framework, which generates HTML static pages from ...

Posted on Mon, 08 Nov 2021 15:15:18 -0500 by baitubai

More than running, everything updated | datart dormant in October, reborn

Hi Wen Ledao's large TV series "when is davinci updated" finally came to an end in the early autumn of 21 years, followed by the official release of the popular new product datart (Digital Art). This year, we can see that there are many such people in the group   So..   And so on..   What else?   ...

Posted on Fri, 05 Nov 2021 02:28:24 -0400 by DavidGS

Free blog space, beautiful VuePress

1. Configure GitHub Pages GitHub creates a new repository. Fill in the name of the repository. The naming rules are as follows: Take "user name. github.io" as the name, and the generated website address is "https: / / user name. github.io",.If you use other names, such as "gitpages" in this example, the final co ...

Posted on Sun, 31 Oct 2021 19:57:57 -0400 by doc

git common commands

git command 1. Version number query $ git --version 2. Clear screen $ clear 3. Set user name and mailbox $ git config --global user.name "user name" $ git config --global user.email "mailbox" 4. Initialize local warehouse $ git init 5. View directory $ ll $ ll -la //Back to the previous directory $ cd .. 6. Submit file to stagi ...

Posted on Tue, 26 Oct 2021 06:10:38 -0400 by meshi

Configure multiple git accounts locally (company, GitHub)

When the company explores new knowledge (fishing), we generally need to maintain our own small warehouse on GitHub. In this way, if the original configuration is used, Permission Denied will occur when pushing the code. So we have the following steps: The company's computer is a Mac, so the following contents are all MAC operations, but differe ...

Posted on Tue, 19 Oct 2021 16:10:39 -0400 by sasi

References in Java and JNI (strong, soft, weak, virtual)

1. Strong References (Objects) Features: Strong references provide direct access to the target object. Will not be recycled. Two, soft reference (SoftReference class) Features: When GC reclaims based on JVM memory, JVM reclaims when it finds it is out of memory Conditions for freeing up space: JVM found insufficient m ...

Posted on Sun, 19 Jul 2020 11:33:27 -0400 by amitkrathi

References in Java and JNI (strong, soft, weak, virtual)

1. Strong References (Objects) Features: Strong references provide direct access to the target object. Will not be recycled. Two, soft reference (SoftReference class) Features: When GC reclaims based on JVM memory, JVM reclaims when it finds it is out of memory Conditions for freeing up space: JVM found insufficient m ...

Posted on Sun, 19 Jul 2020 11:35:19 -0400 by Mikersson

Jump to third-party app for Cordova plug-ins

created by diwj on 20171205 Step 1: Install the Cordova plug-in cordova plugin add https://github.com/lampaa/com.lampa.startapp.git //Non-cordova official plug-in, open third-party app s cordova plugin add cordova-plugin-appavailability --save//Detect the existence of third-party app s cordova plugin add cordova-plugin-inappbrowser //App ...

Posted on Wed, 15 Jul 2020 11:41:04 -0400 by Balmung-San

Jump to third-party app for Cordova plug-ins

created by diwj on 20171205 Step 1: Install the Cordova plug-in cordova plugin add https://github.com/lampaa/com.lampa.startapp.git //Non-cordova official plug-in, open third-party app s cordova plugin add cordova-plugin-appavailability --save//Detect the existence of third-party app s cordova plugin add cordova-plugin-inappbrowser //App ...

Posted on Wed, 15 Jul 2020 11:40:37 -0400 by amreiff