Created
February 14, 2022 09:04
-
-
Save chico/f042aab6e81c839f4aa8d492b88aea03 to your computer and use it in GitHub Desktop.
Hello oclif test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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