Ready to get started?

Join Adocasts Plus for $8/mo, or sign into an existing Adocasts Plus account, to get access to all of our lessons.

robot mascot smiling

Pragmatic Testing in AdonisJS with Japa #2.3

Testing Async Code & Exceptions

In This Lesson

We'll cover testing asynchronous code in AdonisJS using Japa. Learn to assert successful promises with both async/await and promise chaining. We'll then discuss testing rejected promises and what to watch for to prevent false positives.

Created by
@tomgobich
Published

Notes Used to Craft

Next lets take a look at some assertions when it comes to asynchronous code and promises.

node ace make:test async --suite=unit

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!