UNPKG

flow-bro

Version:

Your personal flow type helper with features like coverage and watch mode

9 lines (7 loc) 268 B
const getFlowCoverage = require("./get-flow-coverage"); module.exports = function(amount) { return getFlowCoverage().then(files => ({ covered: files.reduce((sum, { covered }) => sum + covered, 0), all: files.reduce((sum, { all }) => sum + all, 0) })); };