2.10.112 • Published 10 months ago

@patrtorg/deserunt-neque v2.10.112

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@patrtorg/deserunt-neque

Build Status Conventional Commits nycrc config on GitHub

converts from v8 coverage format to istanbul's coverage format.

Usage

const v8toIstanbul = require('@patrtorg/deserunt-neque')
// the path to the original source-file is required, as its contents are
// used during the conversion algorithm.
const converter = v8toIstanbul('./path-to-instrumented-file.js')
await converter.load() // this is required due to async file reading.
// provide an array of coverage information in v8 format.
converter.applyCoverage([
  {
    "functionName": "",
    "ranges": [
      {
        "startOffset": 0,
        "endOffset": 520,
        "count": 1
      }
    ],
    "isBlockCoverage": true
  },
  // ...
])
// output coverage information in a form that can
// be consumed by Istanbul.
console.info(JSON.stringify(converter.toIstanbul()))

Ignoring Uncovered Lines

Sometimes you might find yourself wanting to ignore uncovered lines in your application (for example, perhaps you run your tests in Linux, but there's code that only executes on Windows).

To ignore lines, use the special comment /* v8 ignore next */.

NOTE: Before version 9.2.0 the ignore hint had to contain c8 keyword, e.g. /* c8 ignore ....

ignoring the next line

const myVariable = 99
/* v8 ignore next */
if (process.platform === 'win32') console.info('hello world')

ignoring the next N lines

const myVariable = 99
/* v8 ignore next 3 */
if (process.platform === 'win32') {
  console.info('hello world')
}

ignoring all lines until told

/* v8 ignore start */
function dontMindMe() {
  // ...
}
/* v8 ignore stop */

ignoring the same line as the comment

const myVariable = 99
const os = process.platform === 'darwin' ? 'OSXy' /* v8 ignore next */ : 'Windowsy' 

Testing

To execute tests, simply run:

npm test
autoscalingdeepcloneSetconsolevaluesreversereact animationerrormatcheseast-asian-widthgroupglacierfullespreeinternal slotsettesterhttpInt8ArrayRegExp.prototype.flagsisrmdirtransportsource mapreworkforkxtermdefineexpressioninstalltransformreact poseUint16ArrayrssargvoffsetES2019protobuftypedarrayshasOwnPropertyequalityjasmineimmerelasticacheponyfilldependency managerprototypeUint8Arraylocationl10nfile systemcloudfrontlastcachedeletestyleapollooptimizerwhichobjectCSStypedes2016es5yamlschemeES7[[Prototype]]prototoReversedhttpscli@@toStringTagInt16ArraymergecolumnscharacterrobustArray.prototype.findLastmobiletelephoneshellRFC-6455util.inspectcheckiamreadableArray.prototype.includesextrawebqueryagentkoreanflatMaphashfantasy-landfast-deep-copytestingeventsroutetoolseslintenumerableguid3dtypesvarmochaReactiveExtensionsstoragegatewayfast-copyprocesscode pointsWebSocketsreusetostringtagspawnnpmexpresstappicomatchArrayBuffer.prototype.slicecollection.es6zodcoverage_.extendserializestreamsinternalsinatralru0ECMAScript 2022jQueryvalidjsdifftapeescapecomparedatatoArraycommanderregexpwritemoduleshigher-ordercsseslintpluginquerystringequalstylinglookECMAScript 5ES8readES2023searchassertionArray.prototype.findLastIndexposeeslint-plugindiffsetPrototypeOfbindharmonyobjphonestabletddtyped arraytc39proxycloneargsObject.fromEntriesfpsistanbulmetadataES3AsyncIteratorUint32ArraywafnodesharedarraybuffercharactersrestspeedhasgesturesgetterglobfastcopyfindasyncES2020browserslistec2definePropertyclassnamesmanipulationstream6to5dataViewclassesBigUint64ArrayFunction.prototype.nameInt32ArrayjsdomgetsetImmediatechaireal-timermYAMLsymbolfull-widthArrayBufferidentifiersgetOwnPropertyDescriptorgetoptloggingi18nexecfunctionalStreamsparentspureparsernativebundleremojimruformpackagedebugparsefixed-widthupcontainsperformancehasOwnfunction.lengthapptermfastclonetypeerrorroute53dragconfigclienteventDispatcherregular expressionszxisConcatSpreadablecore-jsreduceECMAScript 7karmaJSON-SchemaremoveArray.prototype.flattenentriesloadingbrowserlistUint8ClampedArrayconfigurablesliceswfartforEachreact-hook-formsetterflattranspilercloudsearchieSymboleveryprunelanguagesubprocessdirectoryregularwidthtypedarraylook-uprgbrapidwaapitoolkitjsonschemacurriedes6protocol-bufferstakerequireamazonURLSearchParamswritablerulesfunctiononcesnsRegExp#flagsnamesshrinkwrapspringsomestarterterminalStreamECMAScript 6columnformattingsuperagentdescriptionextendcloudformationvestbannerinstallerpropajaxasterisksclassnameMicrosoftpyyamlflagcjkbddschemadotenvtypenpmignoreRxglobal this valueimportinstrumentationthreetypescriptquoteruntimea11yutilitiesmatchbyteLengthjson-schema-validationString.prototype.matchAllES5lockfilesimpledbapibrowserReflect.getPrototypeOfObjectfrompropertymomentdeepcopymkdirsES2015form-validationparentdebuggerdependenciesatomMapbuffersStyleSheetconcatMapjsregexstyleguideidlemakefind-upvpcPushavacoercibleECMAScript 2020ajvsyntaxES2021urlconcatstringifierqsSymbol.toStringTag256rangeerrorfptoSortedfetchecmascriptlengthnodejscallbound__proto__stylestestlibphonenumberwgetmoveObject.definePropertyhelperdayjsvalidatorenvRxJSsharedESnextanimationfastifybinindicatortypesafesafenoperdsinvariantworkspace:*es7nameloadbalancingendpointbundlingsqsECMAScript 2016shebangclass-validatorqueueMicrotaskpropertiesECMAScript 2023listenerslogchildperformantiteratorcircularspinneremrECMAScript 2017Object.assigndeep-cloneunicodenegativezeroformsjestkinesisexecutechanneles-shimshas-owndeep-copytslibwalkObject.getPrototypeOfasciiArray.prototype.flatMaps3superstructSystem.globales2018callbuffersettingsfolderECMAScript 2015globalThisnegative zeroWeakSetgroupByflattenpoint-freepackagespostcss-pluginvaluetrimtrimRightuninstallfeedcreateES2022effect-tsmapcall-boundcallbackJSONcopyidviewconstpipeansielbbeanstalkxhrcall-bindstructuredClonewalkingpopmotiontraversefast-clonegenericslintjapanesejson-schema-validatorloggercensorglobal objectselfshimmkdirpdirtsReactiveXsidepostcssreactresolve-0ES2016importexportargumentjshintCSSStyleDeclarationbusypnpm9fileacornfunctionsPromiseoptionsameValueZeroes-abstractECMAScriptmulti-packageArrayBuffer#slicepolyfillpluginsesTypeBoxes2017TypeScriptqueueArray.prototype.flatstringifyio-tsreverseddropes8arktypechineseaccessibilitypushmkdirsymlinksprivategitignoreutilityworkerprogressomitbinaryoptimistvalidaterm -rfuser-streamsshamString.prototype.trimscheme-validationvisualautoprefixerhtmles-shim API
2.10.112

10 months ago

2.10.111

10 months ago

2.10.110

10 months ago

2.10.109

10 months ago

2.10.108

10 months ago

2.10.107

10 months ago

2.10.106

10 months ago

2.10.105

10 months ago

2.10.104

10 months ago

2.10.103

10 months ago

2.9.103

10 months ago

2.9.102

10 months ago

2.9.101

10 months ago

2.9.100

10 months ago

2.9.99

10 months ago

2.9.98

10 months ago

2.8.98

10 months ago

2.8.97

10 months ago

2.8.96

10 months ago

2.8.95

10 months ago

2.8.94

10 months ago

2.8.93

11 months ago

2.8.92

11 months ago

2.8.91

11 months ago

2.8.90

11 months ago

2.8.89

11 months ago

2.8.88

11 months ago

2.8.87

11 months ago

2.8.86

11 months ago

2.8.85

11 months ago

2.8.84

11 months ago

2.8.83

11 months ago

2.8.82

11 months ago

2.8.81

11 months ago

2.8.80

11 months ago

2.8.79

11 months ago

2.8.78

11 months ago

2.8.77

11 months ago

2.8.76

11 months ago

2.8.75

11 months ago

2.8.74

11 months ago

2.8.73

11 months ago

2.7.73

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

2.6.67

11 months ago

2.6.66

11 months ago

2.6.65

12 months ago

2.6.64

12 months ago

2.6.63

12 months ago

2.6.62

12 months ago

2.6.61

12 months ago

2.6.60

12 months ago

2.6.59

12 months ago

2.5.59

12 months ago

2.5.58

12 months ago

2.5.57

12 months ago

2.5.56

12 months ago

2.5.55

12 months ago

2.5.54

12 months ago

2.5.53

12 months ago

2.5.52

12 months ago

2.5.51

12 months ago

2.5.50

12 months ago

2.5.49

12 months ago

2.5.48

12 months ago

2.5.47

12 months ago

2.5.46

1 year ago

2.5.45

1 year ago

2.5.44

1 year ago

2.5.43

1 year ago

2.5.42

1 year ago

2.5.41

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.3.40

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago