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 #3.0

Testing a Simple Service

In This Lesson

We'll focus on Unit Testing in AdonisJS using Japa. Learn how to write isolated tests for a service's business logic, including asserting correct results and handling expected exceptions.

Created by
@tomgobich
Published

Notes Used to Craft this Lesson

So far, we've used services to aid our tests by mocking real-world behaviors, but now we're going to pivot to actually testing the service.

Let's put our service-specific tests within a services folder so they're all grouped.

Join the Discussion 0 comments

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

Be the first to comment!