Simple utility to check whether flow coverage of a single javascript file satisfies the specified threshold
npm install maxmalov/flow-lint-coverage
npx flow-lint-coverage -i ./foo.js -t 80 -f ./node_modules/.bin/flow
See npx flow-lint-coverage --help
for detailed help.
This tool is designed mostly for lint-staged integration. This will prevent you from committing files with low flow coverage:
{
"lint-staged": {
"*.js": [
"flow-lint-coverage -t 85 -f ./node_modules/.bin/flow -i"
]
}
}