feat: add --help integration test (#5434)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
parent
11b2ef9846
commit
6d8f30d579
13
test/integration/help.test.ts
Normal file
13
test/integration/help.test.ts
Normal file
@ -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)
|
||||
})
|
Reference in New Issue
Block a user