Skip to content

Commit 6d8f30d

Browse files
feat: add --help integration test (#5434)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
1 parent 11b2ef9 commit 6d8f30d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/integration/help.test.ts

+13
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)