Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
group.afterEach(async () => {
ace.commands = {}
await ioc.use('Database').table('adonis_schema').truncate()
await ioc.use('Database').schema.dropTableIfExists('schema_users')
})
group.afterEach(async () => {
ace.commands = {}
await ioc.use('Database').collection('adonis_schema').delete()
await ioc.use('Database').schema.dropCollectionIfExists('schema_users')
})
group.afterEach(async () => {
ace.commands = {}
try {
await fs.remove(path.join(__dirname, 'database'))
} catch (error) {
if (process.platform !== 'win32' || error.code !== 'EBUSY') {
throw error
}
}
})
group.afterEach(async () => {
ace.commands = {}
await ioc.use('Database').table('adonis_schema').truncate()
await ioc.use('Database').schema.dropTableIfExists('schema_users')
})
group.beforeEach(() => {
ace.commands = {}
})
group.afterEach(async () => {
ace.commands = {}
await ioc.use('Database').collection('adonis_schema').delete()
await ioc.use('Database').schema.dropCollectionIfExists('schema_users')
})
group.afterEach(async () => {
ace.commands = {}
try {
await fs.remove(path.join(__dirname, 'database'))
} catch (error) {
if (process.platform !== 'win32' || error.code !== 'EBUSY') {
throw error
}
}
})