Skip to content

Commit 7e2d2ed

Browse files
committed
test: bin: coverage
1 parent 6c7709b commit 7e2d2ed

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.madrun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
'lint:fresh': () => run('lint', '--fresh'),
2929
'fix:lint': async () => `putout --rulesdir rules --fix . && redlint fix`,
3030
'lint:stream': () => run('lint', '-f stream'),
31-
'test': () => [testEnv, `tape 'test/**/*.{js,mjs}' '{client,static,common,server}/**/*.spec.{js,mjs}' -f fail`],
31+
'test': () => [testEnv, `tape 'test/**/*.js' '{bin,client,static,common,server}/**/*.spec.js' -f fail`],
3232
'test:client': () => `tape 'test/client/**/*.js'`,
3333
'test:server': () => `tape 'test/**/*.js' 'server/**/*.spec.js' 'common/**/*.spec.js'`,
3434
'wisdom': async () => await run(['lint:all', 'build', 'test'], null, {

bin/cloudcmd.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ test('cloudcmd: bin: cli: -h', (t) => {
1515
t.match(stdout, `Options`);
1616
t.end();
1717
});
18+
19+
test('cloudcmd: bin: cli: -v', (t) => {
20+
const {version} = info;
21+
const {stdout} = spawnSync(cliPath, ['-v'], {
22+
encoding: 'utf8',
23+
});
24+
25+
t.match(stdout, `v${version}`);
26+
t.end();
27+
});

0 commit comments

Comments
 (0)