AdonisJS integration

Japa has an official preset for the AdonisJS framework. The preset bundles the following plugins under a single package.

  • @japa/api-client
  • @japa/assert
  • @japa/run-failed-tests
  • @japa/spec-reporter

Also, the core classes of Japa are registered inside the AdonisJS IoC container. This allows AdonisJS packages to extend Japa using the service provider lifecycle hooks.

Setup

Japa comes pre-configured with every new AdonisJS application. Hence, there is no need to perform any additional setup.

Creating and running tests

You can use the AdonisJS Ace command line to create test files and execute tests.