From 6d8f30d5796bbd170742d8efc332daef7f5d976b Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 10 Aug 2022 10:23:24 -0500 Subject: [PATCH] feat: add --help integration test (#5434) Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> --- test/integration/help.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/integration/help.test.ts diff --git a/test/integration/help.test.ts b/test/integration/help.test.ts new file mode 100644 index 000000000..12786f282 --- /dev/null +++ b/test/integration/help.test.ts @@ -0,0 +1,13 @@ +import { runCodeServerCommand } from "../utils/runCodeServerCommand" + +// NOTE@jsjoeio +// We have this test to ensure that native modules +// work as expected. If this is called on the wrong +// platform, the test will fail. +describe("--help", () => { + it("should list code-server usage", async () => { + const expectedOutput = "Usage: code-server [options] [path]" + const { stdout } = await runCodeServerCommand(["--help"]) + expect(stdout).toMatch(expectedOutput) + }, 20000) +})