mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-15 20:25:22 +02:00
feat: add check server command
This commit is contained in:
14
test/commands/check-server.test.ts
Normal file
14
test/commands/check-server.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import {runCommand} from '@oclif/test'
|
||||
import {expect} from 'chai'
|
||||
|
||||
describe('check-server', () => {
|
||||
it('runs check-server cmd', async () => {
|
||||
const {stdout} = await runCommand('check-server')
|
||||
expect(stdout).to.contain('hello world')
|
||||
})
|
||||
|
||||
it('runs check-server --name oclif', async () => {
|
||||
const {stdout} = await runCommand('check-server --name oclif')
|
||||
expect(stdout).to.contain('hello oclif')
|
||||
})
|
||||
})
|
||||
9
test/commands/hello/index.test.ts
Normal file
9
test/commands/hello/index.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {runCommand} from '@oclif/test'
|
||||
import {expect} from 'chai'
|
||||
|
||||
describe('hello', () => {
|
||||
it('runs hello', async () => {
|
||||
const {stdout} = await runCommand('hello friend --from oclif')
|
||||
expect(stdout).to.contain('hello friend from oclif!')
|
||||
})
|
||||
})
|
||||
9
test/commands/hello/world.test.ts
Normal file
9
test/commands/hello/world.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {runCommand} from '@oclif/test'
|
||||
import {expect} from 'chai'
|
||||
|
||||
describe('hello world', () => {
|
||||
it('runs hello world cmd', async () => {
|
||||
const {stdout} = await runCommand('hello world')
|
||||
expect(stdout).to.contain('hello world!')
|
||||
})
|
||||
})
|
||||
9
test/tsconfig.json
Normal file
9
test/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../tsconfig",
|
||||
"compilerOptions": {
|
||||
"noEmit": true
|
||||
},
|
||||
"references": [
|
||||
{"path": ".."}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user