Run seed on tests?

Is it possible to run the seed within a test?

The real question would be: is that a clean approach ? I don’t think so.

1 Like

@henriqueweiand Hi, you can use @adonisjs/ace. Like :

const ace = require("@adonisjs/ace")

await ace.call("seed", {}, { silent: true })
3 Likes