Материалы по теме 'jest' | DevsDay.ru

IT-блоги Материалы по теме 'jest'

IT-блоги Материалы по теме 'jest'


Разработка dev.to 31 января 2023 г. 14:37

If you have heard of Vite, then you have probably heard of Vitest, the fast unit test framework built from it. In this article, let’s explore what Vitest is, how to use it and why it can be the next test framework for your apps. What is Vit...... читать далее

webdev javascript testing tutorial

Разработка dev.to 27 января 2023 г. 10:51

Introduction Let's talk about developing React Native apps. Or, to be more precise about developing performant React Native apps. React Native is an excellent framework for developing cross-platform mobile apps. It's fast; it's easy to use. Howeve...... читать далее

performance reactnative opensource

Разработка dev.to 26 января 2023 г. 17:25

Written by Eze Sunday✏️ Visual debugging allows developers to see the execution of their code in real-time, making it easier to identify and fix problems. It is particularly useful when working with complex codebases with several moving parts. Bef...... читать далее

javascript webdev

Разработка dev.to 26 января 2023 г. 9:24

Jest is a popular JavaScript testing framework that provides a variety of powerful features for testing your code. One such feature is the spyOn method, which allows you to create a spy on a specific method of an object. In this article, we'll take...... читать далее

webdev javascript beginners testing

Разработка dev.to 24 января 2023 г. 13:52

Author: Madars Bišs Modern full-stack applications are often based on data components like admin panels, dashboards, and internal tools. It may take a lot of time and involve repetitive work to create them from scratch each time. In this article we...... читать далее

webdev react javascript beginners

Разработка dev.to 22 января 2023 г. 22:23

A Testing Guide For Node.js, Express.js, and Mongoose Apps with Jest and SuperTest The benefits of testing isn’t obvious at first. Testing is responsible for verifying the correctness of our code. When writing any software, it is important to ha...... читать далее

testing node mongodb javascript

Разработка dev.to 22 января 2023 г. 21:41

Designing a URL shortener is frequently asked in technical interviews. In this article, I will describe how to design a URL shortener first, then I will walk you through how to implement the app as MVP(Minimum Viable Product) in Typescript...... читать далее

typescript react node express

Разработка dev.to 20 января 2023 г. 11:02

You know I have a strong passion for testing. Testing helps me to maintain good code design, stay focused on the purpose of the code, and prevent regressions in the future. I have been (and still am) dedicating a lot of time on the quest to master t...... читать далее

testing javascript tutorial react

Разработка dev.to 20 января 2023 г. 9:53

The Nx ecosystem is excellent because, on the one hand, it allows different teams to work under the same monorepo and build robust enterprise solutions. On the other hand, the basic Nx functionality is relatively easy. That's why Nx-based solutions t...... читать далее

nx typescript monorepo webdev

Разработка dev.to 19 января 2023 г. 16:05

Since the original React Native AsyncStorage was deprecated, you may be using the community solution: react-native-async-storage. I would personally recommend it! Once you start writing your unit tests with Jest & React Native Testing Library, y...... читать далее

reactnative testing tutorial mobile

Разработка DZone Web Dev 18 января 2023 г. 17:34

React Testing Library is a testing utility tool built to test the actual DOM tree rendered by React on the browser. The goal of the library is to help you write tests that resemble how a user would use your application. This can give you more confide...... читать далее

Разработка habr.com 18 января 2023 г. 11:55

Я давно хотел рассказать об этом, но не знал как. Не было подходящего примера, какой-то однозначной, наглядной ситуации. И вот недавно мне дали новый проект, в котором уже были написаны unit тесты и они работали, но был один нюанс, который портил всю...... читать далее

JavaScript Angular TypeScript jest error code 1 angular typescript javascript

Разработка dev.to 17 января 2023 г. 14:26

If you need an intro/introduction to any of the following web frameworks React, Angular, Vue, Svelte, Express, NodeJS, ASP.NET Core, Django, Spring, Flask, Laravel, Ruby on Rails, FastAPI, jQuery, Gatsby, Symfony, Drupal, ASP.NET, AdonisJS, Fastify,...... читать далее

webdev frontend frameworks

Разработка dev.to 17 января 2023 г. 13:11

Stubs are a key tool for software testing, allowing developers to test individual units of code in isolation by replacing external dependencies with simplified versions. Here's an example of a stub in use: import { IncomingMessage } from "http";...... читать далее

Разработка dev.to 16 января 2023 г. 8:30

Unit testing is like when you play a game and you want to make sure all the pieces are working the way they should. Imagine you are playing with a toy car and you want to make sure it can drive forward, backward and make turns. You test these things...... читать далее

Разработка dev.to 14 января 2023 г. 15:55

One of the biggest advantages of Angular is the variety of tools and solutions that are brought to developers out of the box. One of them is the @angular/forms package, which brings the solid experience of working with any kind of UI controls. But ha...... читать далее

angular forms javascript

Разработка dev.to 14 января 2023 г. 2:04

Node.js is a popular open-source, cross-platform JavaScript runtime that allows developers to build fast and scalable network applications. As with any technology, there are certain best practices that should be followed when working with Node.js to...... читать далее

webdev javascript node programming

Разработка dev.to 13 января 2023 г. 11:52

It's a popular saying that a craftsman is as good as his tools and the same goes for Web Developers. If you don't know your tools, you will struggle in your day-to-day job. At the same time, knowing your tool well can increase your productivity and h...... читать далее

webdev beginners javascript

Разработка dev.to 12 января 2023 г. 14:15

In this article I tried to talk the steps of create a react component library. Why do we need to build a react component library? If you have several components that are shared between your projects or some js code that is copy-pasting an...... читать далее

react javascript package opensource

Разработка dev.to 11 января 2023 г. 10:07

Get current date with new Date() and setHours to 0, 0, 0 and then you are ready to compare with the input date, which is a string in the yyyy-MM-dd format export const isLessThanToday = (input: string): boolean => { //format of input date is YY...... читать далее

javascript date codever snippets