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

Testing GET Endpoints

In This Lesson

We'll write Functional Tests to test an AdonisJS route using the Japa API Client. Learn to test happy paths by asserting successful responses and sad paths by asserting purposefully failed responses.

Created by
@tomgobich
Published

Notes Used to Craft this Lesson

Within this project, I've got a simple PostsController that mimics requests and responses you might make for a resource. This will allow us to get comfortable without actually needing database integrations quite yet.

To start, we'll make a posts spec file.

Join the Discussion 0 comments

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

Be the first to comment!