feat: add database create

This commit is contained in:
Mauricio Siu
2024-06-12 23:01:46 -06:00
parent 1b97e2c6f5
commit 99451d416c
17 changed files with 965 additions and 30 deletions

View File

@@ -0,0 +1,14 @@
import {runCommand} from '@oclif/test'
import {expect} from 'chai'
describe('database:postgres:create', () => {
it('runs database:postgres:create cmd', async () => {
const {stdout} = await runCommand('database:postgres:create')
expect(stdout).to.contain('hello world')
})
it('runs database:postgres:create --name oclif', async () => {
const {stdout} = await runCommand('database:postgres:create --name oclif')
expect(stdout).to.contain('hello oclif')
})
})