index.test.ts 240 B

12345678910
  1. import { expect, test } from '@oclif/test'
  2. describe('hello', () => {
  3. test
  4. .stdout()
  5. .command(['hello', 'friend', '--from=oclif'])
  6. .it('runs hello cmd', ctx => {
  7. expect(ctx.stdout).to.contain('hello friend from oclif!')
  8. })
  9. })