mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-19 14:15:20 +02:00
feat: add list and create project
This commit is contained in:
14
test/commands/project/create.test.ts
Normal file
14
test/commands/project/create.test.ts
Normal 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')
|
||||
})
|
||||
})
|
||||
14
test/commands/project/list.test.ts
Normal file
14
test/commands/project/list.test.ts
Normal 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')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user