How to Throw Errors From Async Functions in Javascript? (and how to test them)

It is possible to throw errors from async functions in Javascript?

How to Throw Errors From Async Functions in Javascript? (and how to test them)

The topic has been covered hundred of times but let’s see it from a TDD standpoint.

Answer the question without looking at Stackoverflow.

If you know the answer, well I’m impressed.

If not that’s cool too. Keep reading and you’ll find it!

Continue reading “How to Throw Errors From Async Functions in Javascript? (and how to test them)”

Webpack 4 Tutorial: from 0 Conf to Production Mode

webpack 4 is out!

The popular module bundler gets a massive update.

webpack 4, what’s new? A massive performance improvement, zero configuration and sane defaults.

webpack 4 logo

This is a living, breathing introduction to webpack 4. Constantly updated.

You’ll build a working webpack 4 environment by following each section in order. But feel free to jump over the tutorial!

Continue reading “Webpack 4 Tutorial: from 0 Conf to Production Mode”

Tutorial: Setting up React with Parcel. A comparison with Webpack 3

Learn how to configure React with Parcel module bundler in this brief tutorial

Parcel is a new module bundler for Javascript applications. It offers faster compilation times and zero configuration bundling.

Setting up React with Parcel Bundler

You’re not supposed to switch from a tool to another one every week. But I feel like Parcel it’s worth a look.

Let’s see why.

Continue reading “Tutorial: Setting up React with Parcel. A comparison with Webpack 3”

Tutorial: How to set up React, Webpack 3, and Babel, in 2017

This article covers webpack 3. Check out webpack 4 tutorial for the updated version

React is mostly used for creating Single Page Applications. But it’s possible to integrate the library into any website by using Webpack and Babel.

Most beginners don’t know how to glue React and Webpack together so here is a short tutorial for you.

React, Webpack, and Babel: a tutorial

Continue reading “Tutorial: How to set up React, Webpack 3, and Babel, in 2017”

Tutorial: User Interface Testing with Jest and Puppeteer

I started to consider testing with Jest and Puppeteer right after the library came out. Puppeteer has quite an interesting API.

Testing with Jest and Puppeteer

In the following post I’ll introduce you to a basic UI test for a contact form.

We will testing with Jest and Puppeteer. Even if it’s still under development and the API could be subject to changes, Puppeteer is here to stay.

Continue reading “Tutorial: User Interface Testing with Jest and Puppeteer”