1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 14:28:04 +00:00
_/oclif/tests/commands/hello/index.test.ts

9 lines
277 B
TypeScript
Raw Normal View History

2022-04-15 15:57:00 +09:00
import { test, expect } from "vitest";
2022-04-15 16:52:45 +09:00
import { stdout } from "stdout-stderr";
2022-04-15 15:57:00 +09:00
import Hello from "../../../src/commands/hello/index";
test("hello", async () => {
2022-04-15 16:52:45 +09:00
await Hello.run(["friend", "--from=oclif"]);
expect(stdout.output).toContain("hello friend from oclif!");
2022-04-15 15:57:00 +09:00
});