1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/oclif/tests/commands/hello/index.test.ts
2022-04-15 16:52:45 +09:00

8 lines
277 B
TypeScript

import { test, expect } from "vitest";
import { stdout } from "stdout-stderr";
import Hello from "../../../src/commands/hello/index";
test("hello", async () => {
await Hello.run(["friend", "--from=oclif"]);
expect(stdout.output).toContain("hello friend from oclif!");
});