bitjson / typescript-starter

Quickly create and configure a new library or Node.js project
https://bitjson.github.io/typescript-starter/
MIT License
3.48k stars 245 forks source link

Fix coverage #205

Closed didierdemoniere closed 5 years ago

didierdemoniere commented 5 years ago
codecov[bot] commented 5 years ago

Codecov Report

Merging #205 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #205   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines         261    261           
  Branches       39     39           
=====================================
  Hits          261    261

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 65f82a9...736b6ba. Read the comment docs.

codecov[bot] commented 5 years ago

Codecov Report

Merging #205 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #205   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines         261    261           
  Branches       39     39           
=====================================
  Hits          261    261

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 65f82a9...736b6ba. Read the comment docs.

bitjson commented 5 years ago

Hey @didierdemoniere thanks for opening a PR! I can't seem to reproduce the issue – the extension settings should already be automatically set by the extends: @istanbuljs/nyc-config-typescript in package.json:

{
  "cache": false,
  "extension": [
    ".ts",
    ".tsx"
  ],
  "exclude": [
    "**/*.d.ts",
    "coverage/**",
    "packages/*/test/**",
    "test/**",
    "test{,-*}.ts",
    "**/*{.,-}{test,spec}.ts",
    "**/__tests__/**",
    "**/node_modules/**"
  ]
}

If you create a new project, do you still see the issue?

mrGibi commented 5 years ago

I had to manually install @istanbuljs/nyc-config-typescript.

didierdemoniere commented 5 years ago

Hi @bitjson, to reproduce this i run: npx typescript-starter then npm run cov inside the project. is @istanbuljs/nyc-config-typescript installed globally on your setup ?

bitjson commented 5 years ago

@didierdemoniere thanks for responding! (And thank you to @mrGibi too.) You were right – the package was being removed on install by the CLI. I credited you in https://github.com/bitjson/typescript-starter/commit/710bf3e871ee162f3f7bdbfb1438c9b6130562e1, released as v2.4.7.

didierdemoniere commented 5 years ago

thanks @bitjson. This package is a huge time saver, keep up the good work.