mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
test: bin: coverage
This commit is contained in:
parent
6c7709be9c
commit
7e2d2ede98
2 changed files with 11 additions and 1 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue