PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/nyc/lib/instrumenters

Просмотр файла: noop.js

'use strict'

function NOOP () {
  const { readInitialCoverage } = require('istanbul-lib-instrument')

  return {
    instrumentSync (code, filename) {
      const extracted = readInitialCoverage(code)
      if (extracted) {
        this.fileCoverage = extracted.coverageData
      } else {
        this.fileCoverage = null
      }
      return code
    },
    lastFileCoverage () {
      return this.fileCoverage
    }
  }
}

module.exports = NOOP

Выполнить команду


Для локальной разработки. Не используйте в интернете!