ES6 Promises + Testing

contains
- Write an Async = Async JS (https://egghead.io/courses/asynchronous-javascript-with-async-await)
- Use JavaScript generators = Write Async code with Generators (https://egghead.io/courses/write-simple-asynchronous-code-with-javascript-generators)
- Testing Es6 Promises = Single course video
- Adding ES6 Support , Unit Testing with Mocha, Setting up Unit Testing = Open Source JS Library (https://egghead.io/courses/how-to-write-an-open-source-javascript-library)
- JavaScript Fundamentals: Hello = Single course video

Watch User Created Playlist (7)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Write an Asynchronous Function with async/await

P

Use JavaScript (ES6) generators to pause function execution

P

Testing ES6 Promises in Node.js using Mocha and Chai

P

Adding ES6 Support to Tests using Mocha and Babel

JavaScript Testing Fundamentals: Hello world unit test with Mocha (in ES6)

P

Unit Testing with Mocha and Chai

Setting up Unit Testing with Mocha and Chai

javascript tutorial about Write an Asynchronous Function with async/await

Write an Asynchronous Function with async/await

2:01 javascript PRO

This lesson introduces the ES2017 async and await keywords. It shows how to write a short asynchronous function that makes an HTTP request and parses the response.

javascript tutorial about Use JavaScript (ES6) generators to pause function execution

Use JavaScript (ES6) generators to pause function execution

1:47 javascript PRO

ES6 generators make it possible to pause and resume function execution at arbitrary points. This video will introduce you to the basics of generators with the yield keyword.

chai tutorial about Testing ES6 Promises in Node.js using Mocha and Chai

Testing ES6 Promises in Node.js using Mocha and Chai

4:53 chai PRO

Writing great ES6 style Promises for Node.js is only half the battle. Your great modules must include tests as well to ensure future iterations don't break them. In this lesson, I show you a simple ES6 Promise in Node.js, then walk you through creating tests in Mocha using chai and chai-as-promised to test both resolve and reject methods.

javascript tutorial about Adding ES6 Support to Tests using Mocha and Babel

Adding ES6 Support to Tests using Mocha and Babel

5:02 javascript

By adding ES6 support to our source code, we need to add that same support to our tests so we can consume that synatx. This is quite easy with the --compilers flag for Mocha.

mocha tutorial about JavaScript Testing Fundamentals: Hello world unit test with Mocha (in ES6)

JavaScript Testing Fundamentals: Hello world unit test with Mocha (in ES6)

6:15 mocha PRO

Mocha is a testing framework that provides structure for unit tests. In this lesson, we will be setting up Mocha with npm and npm scripts, writing a "Hello World" unit test, then writing the code to make the test pass (as an example of Test Driven Development (TDD), with the "red-green-refactor" workflow).

mocha tutorial about Unit Testing with Mocha and Chai

Unit Testing with Mocha and Chai

3:01 mocha

Now that you've got everything set up with mocha and chai, it's time to actually write tests. In this lesson you'll learn how to use describe and it to outline your tests and make sure you don't break your library in the future.

mocha tutorial about Setting up Unit Testing with Mocha and Chai

Setting up Unit Testing with Mocha and Chai

2:44 mocha

Every dependable library needs to have tests to ensure that you don't push accidental bugs. In this lesson, see how you can set up mocha and chai to start testing your library.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?