feat: add delete app

This commit is contained in:
Mauricio Siu
2024-06-05 02:33:09 -06:00
parent f1616b3909
commit 1b97e2c6f5
4 changed files with 304 additions and 0 deletions

View File

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

View File

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