Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

check-coverage.js 780B

12345678910111213141516171819202122232425262728
  1. 'use strict'
  2. const NYC = require('../../index.js')
  3. const { cliWrapper, suppressEPIPE, setupOptions } = require('./helpers.js')
  4. exports.command = 'check-coverage'
  5. exports.describe = 'check whether coverage is within thresholds provided'
  6. exports.builder = function (yargs) {
  7. yargs
  8. .demandCommand(0, 0)
  9. .example('$0 check-coverage --lines 95', "check whether the JSON in nyc's output folder meets the thresholds provided")
  10. setupOptions(yargs, 'check-coverage')
  11. }
  12. exports.handler = cliWrapper(async argv => {
  13. process.env.NYC_CWD = process.cwd()
  14. const nyc = new NYC(argv)
  15. await nyc.checkCoverage({
  16. lines: argv.lines,
  17. functions: argv.functions,
  18. branches: argv.branches,
  19. statements: argv.statements
  20. }, argv['per-file']).catch(suppressEPIPE)
  21. })