Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dcf4974

Browse files
committedAug 9, 2022
feat: add --help integration test
1 parent a51c941 commit dcf4974

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎test/integration/help.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.