feat: add list and create project

This commit is contained in:
Mauricio Siu
2024-06-05 01:43:19 -06:00
parent 9f033de1b2
commit bec0dfa57f
12 changed files with 249 additions and 16 deletions

View File

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