diff --git a/bin/cloudcmd.spec.js b/bin/cloudcmd.spec.js new file mode 100644 index 00000000..fa4c44bd --- /dev/null +++ b/bin/cloudcmd.spec.js @@ -0,0 +1,17 @@ +import {spawnSync} from 'node:child_process'; +import {test} from 'supertape'; + +const cliPath = new URL('cloudcmd.js', import.meta.url).pathname; +import info from '../package.json' with { + type: 'json', +} + +test('cloudcmd: bin: cli: -h', (t) => { + const {version} = info; + const {stdout} = spawnSync(cliPath, ['-h'], { + encoding: 'utf8', + }); + + t.match(stdout, `Options`); + t.end(); +});