diff --git a/.madrun.js b/.madrun.js index b10c47ac..9bd30e3d 100644 --- a/.madrun.js +++ b/.madrun.js @@ -28,7 +28,7 @@ export default { 'lint:fresh': () => run('lint', '--fresh'), 'fix:lint': async () => `putout --rulesdir rules --fix . && redlint fix`, 'lint:stream': () => run('lint', '-f stream'), - 'test': () => [testEnv, `tape 'test/**/*.{js,mjs}' '{client,static,common,server}/**/*.spec.{js,mjs}' -f fail`], + 'test': () => [testEnv, `tape 'test/**/*.js' '{bin,client,static,common,server}/**/*.spec.js' -f fail`], 'test:client': () => `tape 'test/client/**/*.js'`, 'test:server': () => `tape 'test/**/*.js' 'server/**/*.spec.js' 'common/**/*.spec.js'`, 'wisdom': async () => await run(['lint:all', 'build', 'test'], null, { diff --git a/bin/cloudcmd.spec.js b/bin/cloudcmd.spec.js index fa4c44bd..286ddb95 100644 --- a/bin/cloudcmd.spec.js +++ b/bin/cloudcmd.spec.js @@ -15,3 +15,13 @@ test('cloudcmd: bin: cli: -h', (t) => { t.match(stdout, `Options`); t.end(); }); + +test('cloudcmd: bin: cli: -v', (t) => { + const {version} = info; + const {stdout} = spawnSync(cliPath, ['-v'], { + encoding: 'utf8', + }); + + t.match(stdout, `v${version}`); + t.end(); +});