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

Alorel / personal-build-tools / 1844

23 Dec 2019 - 1:17 coverage increased (+0.3%) to 78.737%
1844

Pull #180

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
chore(package): update lockfile yarn.lock
Pull Request #180: Update nyc to the latest version 🚀

382 of 627 branches covered (60.93%)

Branch coverage included in aggregate %.

1488 of 1748 relevant lines covered (85.13%)

37.36 hits per line

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

83.33
/src/lib/init/00_nyc.ts
1
import * as fs from 'fs-extra';
2
import {Git} from '../Git';
8×
3
import {Log} from '../Log';
8×
4

8×
5
export function handle() {
8×
6
  if (!fs.pathExistsSync('.nycrc')) {
7
    fs.writeFileSync(
Branches [[0, 1]] missed. 50×
8
      '.nycrc',
50×
9
      JSON.stringify(
10
        {
11
          //tslint:disable:object-literal-sort-keys
12
          reporter: [
13
            'text',
14
            'text-summary',
15
            'html',
16
            'lcov'
17
          ],
18
          extension: [
19
            '.ts'
20
          ],
21
          require: [
22
            'ts-node/register'
23
          ],
24
          exclude: [
25
            '**/test/**/*',
26
            '**/webpack.config.js',
27
            '**/rollup.config.js'
28
          ],
29
          sourceMap: true,
30
          instrument: true
31
        },
32
        //tslint:enable:object-literal-sort-keys
33
        null,
50×
34
        2 //tslint:disable-line:no-magic-numbers
50×
35
      ) + '\n'
36
    );
UNCOV
37
    Git.add('.nycrc');
!
38
    Log.success('Generated .nycrc');
39
  } else {
40
    Log.info('Skipping .nycrc');
8×
41
  }
42
}
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