We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11b2ef9 commit 6d8f30dCopy full SHA for 6d8f30d
test/integration/help.test.ts
@@ -0,0 +1,13 @@
1
+import { runCodeServerCommand } from "../utils/runCodeServerCommand"
2
+
3
+// NOTE@jsjoeio
4
+// We have this test to ensure that native modules
5
+// work as expected. If this is called on the wrong
6
+// platform, the test will fail.
7
+describe("--help", () => {
8
+ it("should list code-server usage", async () => {
9
+ const expectedOutput = "Usage: code-server [options] [path]"
10
+ const { stdout } = await runCodeServerCommand(["--help"])
11
+ expect(stdout).toMatch(expectedOutput)
12
+ }, 20000)
13
+})
0 commit comments