Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

Alorel / personal-build-tools / 367

23 Oct 2018 - 20:45 coverage increased (+5.02%) to 78.602%
367

Pull #33

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
fix travis typecheck script
Pull Request #33: Build

374 of 617 branches covered (60.62%)

Branch coverage included in aggregate %.

288 of 325 new or added lines in 9 files covered. (88.62%)

178 existing lines in 29 files now uncovered.

1470 of 1729 relevant lines covered (85.02%)

38.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.33
/src/commands/cfg/clear.ts
1
import * as readline from 'readline-sync';
2
import {CommandModule} from 'yargs';
4×
3
import {applyGlobalGroup} from '../../fns/add-cmd/applyGlobalGroup';
4×
4
import {cmdName} from '../../fns/cmdName';
4×
5
import {ConfigWriter} from '../../lib/ConfigWriter';
4×
6

UNCOV
7
function prompt(): boolean {
!
8
  return readline.keyInYNStrict('Are you sure you want to remove shared config? ');
9
}
4×
10

11
const cmd: CommandModule = {
2×
12
  builder(argv) {
13
    return applyGlobalGroup(argv)
14
      .option('yes', {
15
        alias: 'y',
16
        boolean: true,
17
        default: false,
18
        describe: 'Skip confirmation and proceed with removal'
19
      });
20
  },
21
  command: cmdName(__filename),
22
  describe: 'Fully clear config shared by all projects',
Branches [[0, 0], [1, 1]] missed. 2×
UNCOV
23
  handler(c: { yes: boolean }) {
!
24
    if (!c.yes && !prompt()) {
25
      process.exit(1);
2×
26
    }
27

28
    new ConfigWriter().clear();
4×
29
  }
30
};
31

32
export = cmd;
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc