JavaScript Testing Tutorial - part 3: Testing props, mounting functions, and snapshot testing

Author: Marcin WanagoTranslate: Crazy Technology House Original: https://wanago.io/2018/09/10/... Reproduction is strictly prohibited without permission JavaScript Testing Tutorial - part 1: Unit testing with Jest JavaScript testing tutorial - part 2: Introducing Enzyme and testing React components JavaScript Testing Tutorial - part 3: Testin ...

Posted on Sun, 17 Nov 2019 21:14:27 -0500 by ThaSpY

The most intimate front-end scaffold development guidance in history

Whenever you find yourself on the side of most people, it's time to stop and think. ——Mark Twain Because this part of the content is a little complicated, post the github address and video explanation address before explanation:Project source code: https://github.com/Walker-Leee/awesome-test-cliVideo explanation, please search WeCh ...

Posted on Sun, 17 Nov 2019 11:36:53 -0500 by dgx

Springboot + Websocket + Sockjs + Stomp + Vue + Iview to realize java back-end log display on front-end web page

Don't talk much, look at the code. I. pom.xml introduces spring boot websocket dependency 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-websocket</artifactId> 4 </dependency> 2. WebSocketConfig configures the WebSocket message proxy endpoint, that is, ...

Posted on Sat, 16 Nov 2019 16:01:36 -0500 by Arc

[Front-end beginners can also do big projects]: Build your own online Visio project from scratch [ReactJS + UmiJS + DvaJS]

This series of tutorials teaches you how to use the Open Source js Drawing Library To create your own online drawing software.You can also look at the development tutorial for this drawing library.If you feel good, please give us a compliment and let us be more motivated to do it! This series of tutorials focuses on how to develop your own draw ...

Posted on Thu, 14 Nov 2019 21:10:01 -0500 by kpetsche20

vue connection database

vue connection database axios in vue 1. Install axios npm: npm install axios -S cdn: <script src="https://unpkg.com/axios/dist/axios.min.js"></script> 2. Configure axios Create a new api/index.js file in the project to configure axios api/index.js import axios from 'axios'; let http = axios.create({ base ...

Posted on Wed, 13 Nov 2019 14:14:27 -0500 by aneesme

vue-cli3 and element make a simple landing page

1. Create a project with vue-cli3 2. Install element module Global installation npm i element-ui -S 3. Introduce module in main.js import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css';Vue.use(ElementUI); 4. Expand a small knowledge point here Find the scripts service in the package.json file, and add -- open to ...

Posted on Tue, 12 Nov 2019 10:18:18 -0500 by pelleas1022

Using hapi.js mysql and nuxt.js to build a project of imitating simplified books

Preface: Preview: Preview: Tencent cloud ip Domain namezhanglijian.top (on file...) github:https://github.com/huoguozhang/my-blog Start: npm i Configure mysql npm run server or npm run dev Implementation function: User: login, registration, user data modification, user details page, similar to the profile, article deletion Article: Arti ...

Posted on Tue, 12 Nov 2019 09:31:29 -0500 by Axem

[Express learning notes-1] quick start

I. Basic Concepts Express is a simple and flexible node.js Web application framework, which provides a series of powerful features to help you create various Web applications and rich HTTP tools. Express can be used to quickly build a full-featured website with a set of robust features, which can be used to develop single page, multi page and h ...

Posted on Tue, 12 Nov 2019 02:45:00 -0500 by ntsf

Release npm package step pit

Yesterday, I tried to release npm package. I ran into a problem. Please record it. First, npm account must be registered Using npm adduser command npm ERR! code EAUTHUNKNOWN npm ERR! Unable to authenticate, need: Basic Upgrade npm to 6.9.0 and report another error npm ERR! code E401 npm ERR! Incorrect or missing password. npm ERR! ...

Posted on Sun, 10 Nov 2019 09:57:23 -0500 by kuni

The View layer of the basis of Sails - Assets

The assets directory is the directory where the front-end static resources are placed under the application of Sails, such as js, css, image, etc. Dynamic injection of assert resources Sails uses Grunt to complete the construction of Web applications. By default, sails uses tasks/register/defaults.js to complete the ...

Posted on Sat, 09 Nov 2019 10:31:10 -0500 by trg