codechecks / typecov Goto Github PK
View Code? Open in Web Editor NEWTrack missing type coverage to ensure type safety
License: MIT License
Track missing type coverage to ensure type safety
License: MIT License
Change: +100.00% Total: 100.00% (min. 100.00%) New untyped symbols: 0
https://github.com/rx-ts/prettier/pull/50/checks?check_run_id=409570509
type-coverage
package supports some options which might be useful (like ignoreFiles or ignoreCatch).
Also its CLI has option --at-least
and I believe type-coverage-watcher
might have that option also and fail if a coverage is down.
Hey,
Typecov warns on the catch(e)
try {
throw new Error()
} catch(e) {
console.log(e);
}
But Typescript warns with this Catch clause variable cannot have a type annotation
Typecov should ignore catch
Currently the comparison used for success/failure compares the unrounded values before they are formatted for display:
https://github.com/codechecks/typecov/blob/master/src/index.ts#L47
As a result, situations are possible where the rendered percentages are the same but the check fails.
Example:
### Current type coverage: 95.00%
Minimum acceptable type coverage: 95.00% โ ๐ด
atLeast
: 95
headTypeCoverage
: 94.999
Another example:
### Current type coverage: 40.63%
Minimum acceptable type coverage: 40.63% โย ๐ด
correctCount
: 26
totalCount
: 64
headTypeCoverage
: 40.625
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.