Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

87
Vistas
AdonisJS migrations not running on test database

Recently started working on a project where AdonisJS is used and I am trying to beef up the test coverage.

Followed the documentation and setup the .env.testing file

HOST=knab-54-api
PORT=4021
NODE_ENV=testing

DB_CONNECTION=pg
DB_HOST=knab-54-api_postgres_1
DB_PORT=5432
DB_USER=knab54api
DB_PASSWORD=knab4api
DB_DATABASE=knab54api-test

Also updated the vowfile.js file

// Uncomment when want to run migrations
const ace = require('@adonisjs/ace')

await ace.call('migration:run', {}, { silent: true })

await ace.call('migration:reset', {}, { silent: true })

As far as setup goes, that should be all you need right?

However, when I run a test, only the adonis_schema table is created in the database, none of the migrations appear to run, but I always get a migration success message

Database migrated successfully in 5.82 s

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda