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:
Joe Previte 2022-08-10 10:23:24 -05:00 committed by GitHub
parent 11b2ef9846
commit 6d8f30d579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View 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)
})