import {expect, test} from '@oclif/test' describe('checkout', () => { test .stdout() .command(['checkout']) .it('runs hello', ctx => { expect(ctx.stdout).to.contain('hello world') }) test .stdout() .command(['checkout', '--name', 'jeff']) .it('runs hello --name jeff', ctx => { expect(ctx.stdout).to.contain('hello jeff') }) })