Skip to content

Instantly share code, notes, and snippets.

@chico
Created February 14, 2022 09:04
Show Gist options
  • Save chico/f042aab6e81c839f4aa8d492b88aea03 to your computer and use it in GitHub Desktop.
Save chico/f042aab6e81c839f4aa8d492b88aea03 to your computer and use it in GitHub Desktop.
Hello oclif test
import { expect, test } from "@oclif/test";
describe("hello", () => {
test
.stdout()
.command(["hello", "world", "--from=clidevs"])
.it("runs hello cmd", (ctx) => {
expect(ctx.stdout).to.contain("hello world from clidevs!");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment