How to use the @adonisjs/ace.commands function in @adonisjs/ace

To help you get started, we’ve selected a few @adonisjs/ace examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adonisjs / adonis-lucid / test / functional / migration-rollback.spec.js View on Github external
group.afterEach(async () => {
    ace.commands = {}
    await ioc.use('Database').table('adonis_schema').truncate()
    await ioc.use('Database').schema.dropTableIfExists('schema_users')
  })
github duyluonglc / lucid-mongo / test / functional / migration-run.spec.js View on Github external
group.afterEach(async () => {
    ace.commands = {}
    await ioc.use('Database').collection('adonis_schema').delete()
    await ioc.use('Database').schema.dropCollectionIfExists('schema_users')
  })
github duyluonglc / lucid-mongo / test / functional / seed-database.spec.js View on Github external
group.afterEach(async () => {
    ace.commands = {}

    try {
      await fs.remove(path.join(__dirname, 'database'))
    } catch (error) {
      if (process.platform !== 'win32' || error.code !== 'EBUSY') {
        throw error
      }
    }
  })
github adonisjs / adonis-lucid / test / functional / migration-run.spec.js View on Github external
group.afterEach(async () => {
    ace.commands = {}
    await ioc.use('Database').table('adonis_schema').truncate()
    await ioc.use('Database').schema.dropTableIfExists('schema_users')
  })
github adonisjs / adonis-cli / test / new.spec.js View on Github external
group.beforeEach(() => {
    ace.commands = {}
  })
github duyluonglc / lucid-mongo / test / functional / migration-rollback.spec.js View on Github external
group.afterEach(async () => {
    ace.commands = {}
    await ioc.use('Database').collection('adonis_schema').delete()
    await ioc.use('Database').schema.dropCollectionIfExists('schema_users')
  })
github adonisjs / adonis-lucid / test / functional / seed-database.spec.js View on Github external
group.afterEach(async () => {
    ace.commands = {}

    try {
      await fs.remove(path.join(__dirname, 'database'))
    } catch (error) {
      if (process.platform !== 'win32' || error.code !== 'EBUSY') {
        throw error
      }
    }
  })