question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

At least one file missing from coverage...

See original GitHub issue

Link to bug demonstration repository.

Right now I don’t have a git with my code, it’s not quite ready yet…

Expected Behavior

I get all the .js files covered in the output.

Observed Behavior

One of my files is missing in one folder (I did not check each folder… specifically, the file I was most working on disappeared)

Forensic Information

Operating System: Ubuntu 16.04

Non-Working Environment Information:

With the β€œWorking Environment Information” plus the latest babel-plugin-istanbul, is when I started experiencing the issue. The line numbers for errors was fixed, but the otherwise working coverage started seeing files go missing.

This is probably the same problem as experienced by others (see #476 and #686). Removing the babel plugin and all the node_modules, coverage, package-lock.json and reinstalling with npm install fixed the problem. Keeping babel around and it continues to fail.

My .babelrc file:

{
  "env": {
    "test": {
      "plugins": [ "istanbul" ]
    }
  }
}

My extra nyc setup:

  "nyc": {
    "sourceMap": false,
    "instrument": false
   }

That’s it. I did not notice right away, but at some point one of the files was out of date. I delete the coverage folder and it did not come back…

Working Environment Information:

With the following I never had any problem.

v10.15.0
6.6.0
rest-architect-server@0.1.0 /home/snapwebsites/private/rest-architect/server
β”œβ”€β”€ js-string-to-object@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/js-string-to-object
β”œβ”€β”¬ mocha@5.2.0
β”‚ β”œβ”€β”€ browser-stdout@1.3.1
β”‚ β”œβ”€β”€ commander@2.15.1
β”‚ β”œβ”€β”¬ debug@3.1.0
β”‚ β”‚ └── ms@2.0.0
β”‚ β”œβ”€β”€ diff@3.5.0
β”‚ β”œβ”€β”€ escape-string-regexp@1.0.5
β”‚ β”œβ”€β”¬ glob@7.1.2
β”‚ β”‚ β”œβ”€β”€ fs.realpath@1.0.0
β”‚ β”‚ β”œβ”€β”¬ inflight@1.0.6
β”‚ β”‚ β”‚ β”œβ”€β”€ once@1.4.0 deduped
β”‚ β”‚ β”‚ └── wrappy@1.0.2
β”‚ β”‚ β”œβ”€β”€ inherits@2.0.3
β”‚ β”‚ β”œβ”€β”€ minimatch@3.0.4 deduped
β”‚ β”‚ β”œβ”€β”¬ once@1.4.0
β”‚ β”‚ β”‚ └── wrappy@1.0.2 deduped
β”‚ β”‚ └── path-is-absolute@1.0.1
β”‚ β”œβ”€β”€ growl@1.10.5
β”‚ β”œβ”€β”€ he@1.1.1
β”‚ β”œβ”€β”¬ minimatch@3.0.4
β”‚ β”‚ └─┬ brace-expansion@1.1.11
β”‚ β”‚   β”œβ”€β”€ balanced-match@1.0.0
β”‚ β”‚   └── concat-map@0.0.1
β”‚ β”œβ”€β”¬ mkdirp@0.5.1
β”‚ β”‚ └── minimist@0.0.8
β”‚ └─┬ supports-color@5.4.0
β”‚   └── has-flag@3.0.0
β”œβ”€β”¬ nyc@13.1.0
β”‚ β”œβ”€β”€ archy@1.0.0
β”‚ β”œβ”€β”€ arrify@1.0.1
β”‚ β”œβ”€β”¬ caching-transform@2.0.0
β”‚ β”‚ β”œβ”€β”€ make-dir@1.3.0 deduped
β”‚ β”‚ β”œβ”€β”¬ md5-hex@2.0.0
β”‚ β”‚ β”‚ └── md5-o-matic@0.1.1
β”‚ β”‚ β”œβ”€β”¬ package-hash@2.0.0
β”‚ β”‚ β”‚ β”œβ”€β”€ graceful-fs@4.1.11
β”‚ β”‚ β”‚ β”œβ”€β”€ lodash.flattendeep@4.4.0
β”‚ β”‚ β”‚ β”œβ”€β”€ md5-hex@2.0.0 deduped
β”‚ β”‚ β”‚ └─┬ release-zalgo@1.0.0
β”‚ β”‚ β”‚   └── es6-error@4.1.1
β”‚ β”‚ └─┬ write-file-atomic@2.3.0
β”‚ β”‚   β”œβ”€β”€ graceful-fs@4.1.11 deduped
β”‚ β”‚   β”œβ”€β”€ imurmurhash@0.1.4
β”‚ β”‚   └── signal-exit@3.0.2 deduped
β”‚ β”œβ”€β”¬ convert-source-map@1.6.0
β”‚ β”‚ └── safe-buffer@5.1.2
β”‚ β”œβ”€β”€ debug-log@1.0.1
β”‚ β”œβ”€β”¬ find-cache-dir@2.0.0
β”‚ β”‚ β”œβ”€β”€ commondir@1.0.1
β”‚ β”‚ β”œβ”€β”€ make-dir@1.3.0 deduped
β”‚ β”‚ └─┬ pkg-dir@3.0.0
β”‚ β”‚   └── find-up@3.0.0 deduped
β”‚ β”œβ”€β”¬ find-up@3.0.0
β”‚ β”‚ └─┬ locate-path@3.0.0
β”‚ β”‚   β”œβ”€β”¬ p-locate@3.0.0
β”‚ β”‚   β”‚ └─┬ p-limit@2.0.0
β”‚ β”‚   β”‚   └── p-try@2.0.0
β”‚ β”‚   └── path-exists@3.0.0
β”‚ β”œβ”€β”¬ foreground-child@1.5.6
β”‚ β”‚ β”œβ”€β”¬ cross-spawn@4.0.2
β”‚ β”‚ β”‚ β”œβ”€β”¬ lru-cache@4.1.3
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ pseudomap@1.0.2
β”‚ β”‚ β”‚ β”‚ └── yallist@2.1.2
β”‚ β”‚ β”‚ └── which@1.3.1 deduped
β”‚ β”‚ └── signal-exit@3.0.2 deduped
β”‚ β”œβ”€β”¬ glob@7.1.3
β”‚ β”‚ β”œβ”€β”€ fs.realpath@1.0.0
β”‚ β”‚ β”œβ”€β”¬ inflight@1.0.6
β”‚ β”‚ β”‚ β”œβ”€β”€ once@1.4.0 deduped
β”‚ β”‚ β”‚ └── wrappy@1.0.2
β”‚ β”‚ β”œβ”€β”€ inherits@2.0.3
β”‚ β”‚ β”œβ”€β”¬ minimatch@3.0.4
β”‚ β”‚ β”‚ └─┬ brace-expansion@1.1.11
β”‚ β”‚ β”‚   β”œβ”€β”€ balanced-match@1.0.0
β”‚ β”‚ β”‚   └── concat-map@0.0.1
β”‚ β”‚ β”œβ”€β”¬ once@1.4.0
β”‚ β”‚ β”‚ └── wrappy@1.0.2 deduped
β”‚ β”‚ └── path-is-absolute@1.0.1
β”‚ β”œβ”€β”€ istanbul-lib-coverage@2.0.1
β”‚ β”œβ”€β”¬ istanbul-lib-hook@2.0.1
β”‚ β”‚ └─┬ append-transform@1.0.0
β”‚ β”‚   └─┬ default-require-extensions@2.0.0
β”‚ β”‚     └── strip-bom@3.0.0
β”‚ β”œβ”€β”¬ istanbul-lib-instrument@3.0.0
β”‚ β”‚ β”œβ”€β”¬ @babel/generator@7.3.0
β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/types@7.3.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ jsesc@2.5.2
β”‚ β”‚ β”‚ β”œβ”€β”€ lodash@4.17.11 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ source-map@0.5.7
β”‚ β”‚ β”‚ └── trim-right@1.0.1
β”‚ β”‚ β”œβ”€β”€ @babel/parser@7.3.1
β”‚ β”‚ β”œβ”€β”¬ @babel/template@7.2.2
β”‚ β”‚ β”‚ β”œβ”€β”¬ @babel/code-frame@7.0.0
β”‚ β”‚ β”‚ β”‚ └─┬ @babel/highlight@7.0.0
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”¬ chalk@2.4.2
β”‚ β”‚ β”‚ β”‚   β”‚ β”œβ”€β”¬ ansi-styles@3.2.1
β”‚ β”‚ β”‚ β”‚   β”‚ β”‚ └─┬ color-convert@1.9.3
β”‚ β”‚ β”‚ β”‚   β”‚ β”‚   └── color-name@1.1.3
β”‚ β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ escape-string-regexp@1.0.5 deduped
β”‚ β”‚ β”‚ β”‚   β”‚ └── supports-color@5.4.0 deduped
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ esutils@2.0.2 deduped
β”‚ β”‚ β”‚ β”‚   └── js-tokens@4.0.0
β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/parser@7.3.1 deduped
β”‚ β”‚ β”‚ └── @babel/types@7.3.0 deduped
β”‚ β”‚ β”œβ”€β”¬ @babel/traverse@7.2.3
β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/code-frame@7.0.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/generator@7.3.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ @babel/helper-function-name@7.1.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ @babel/helper-get-function-arity@7.0.0
β”‚ β”‚ β”‚ β”‚ β”‚ └── @babel/types@7.3.0 deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/template@7.2.2 deduped
β”‚ β”‚ β”‚ β”‚ └── @babel/types@7.3.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ @babel/helper-split-export-declaration@7.0.0
β”‚ β”‚ β”‚ β”‚ └── @babel/types@7.3.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/parser@7.3.1 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ @babel/types@7.3.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”¬ debug@4.1.1
β”‚ β”‚ β”‚ β”‚ └── ms@2.1.1
β”‚ β”‚ β”‚ β”œβ”€β”€ globals@11.10.0
β”‚ β”‚ β”‚ └── lodash@4.17.11 deduped
β”‚ β”‚ β”œβ”€β”¬ @babel/types@7.3.0
β”‚ β”‚ β”‚ β”œβ”€β”€ esutils@2.0.2
β”‚ β”‚ β”‚ β”œβ”€β”€ lodash@4.17.11 deduped
β”‚ β”‚ β”‚ └── to-fast-properties@2.0.0
β”‚ β”‚ β”œβ”€β”€ istanbul-lib-coverage@2.0.1
β”‚ β”‚ └── semver@5.6.0
β”‚ β”œβ”€β”¬ istanbul-lib-report@2.0.2
β”‚ β”‚ β”œβ”€β”€ istanbul-lib-coverage@2.0.1 deduped
β”‚ β”‚ β”œβ”€β”€ make-dir@1.3.0 deduped
β”‚ β”‚ └─┬ supports-color@5.4.0
β”‚ β”‚   └── has-flag@3.0.0
β”‚ β”œβ”€β”¬ istanbul-lib-source-maps@2.0.1
β”‚ β”‚ β”œβ”€β”¬ debug@3.1.0
β”‚ β”‚ β”‚ └── ms@2.0.0
β”‚ β”‚ β”œβ”€β”€ istanbul-lib-coverage@2.0.1 deduped
β”‚ β”‚ β”œβ”€β”€ make-dir@1.3.0 deduped
β”‚ β”‚ β”œβ”€β”€ rimraf@2.6.2 deduped
β”‚ β”‚ └── source-map@0.6.1
β”‚ β”œβ”€β”¬ istanbul-reports@2.0.1
β”‚ β”‚ └─┬ handlebars@4.0.11
β”‚ β”‚   β”œβ”€β”€ async@1.5.2
β”‚ β”‚   β”œβ”€β”¬ optimist@0.6.1
β”‚ β”‚   β”‚ β”œβ”€β”€ minimist@0.0.10
β”‚ β”‚   β”‚ └── wordwrap@0.0.3
β”‚ β”‚   β”œβ”€β”¬ source-map@0.4.4
β”‚ β”‚   β”‚ └── amdefine@1.0.1
β”‚ β”‚   └─┬ uglify-js@2.8.29
β”‚ β”‚     β”œβ”€β”€ source-map@0.5.7
β”‚ β”‚     β”œβ”€β”€ uglify-to-browserify@1.0.2
β”‚ β”‚     └─┬ yargs@3.10.0
β”‚ β”‚       β”œβ”€β”€ camelcase@1.2.1
β”‚ β”‚       β”œβ”€β”¬ cliui@2.1.0
β”‚ β”‚       β”‚ β”œβ”€β”¬ center-align@0.1.3
β”‚ β”‚       β”‚ β”‚ β”œβ”€β”¬ align-text@0.1.4
β”‚ β”‚       β”‚ β”‚ β”‚ β”œβ”€β”¬ kind-of@3.2.2
β”‚ β”‚       β”‚ β”‚ β”‚ β”‚ └── is-buffer@1.1.6
β”‚ β”‚       β”‚ β”‚ β”‚ β”œβ”€β”€ longest@1.0.1
β”‚ β”‚       β”‚ β”‚ β”‚ └── repeat-string@1.6.1
β”‚ β”‚       β”‚ β”‚ └── lazy-cache@1.0.4
β”‚ β”‚       β”‚ β”œβ”€β”¬ right-align@0.1.3
β”‚ β”‚       β”‚ β”‚ └── align-text@0.1.4 deduped
β”‚ β”‚       β”‚ └── wordwrap@0.0.2
β”‚ β”‚       β”œβ”€β”€ decamelize@1.2.0 deduped
β”‚ β”‚       └── window-size@0.1.0
β”‚ β”œβ”€β”¬ make-dir@1.3.0
β”‚ β”‚ └── pify@3.0.0
β”‚ β”œβ”€β”¬ merge-source-map@1.1.0
β”‚ β”‚ └── source-map@0.6.1
β”‚ β”œβ”€β”€ resolve-from@4.0.0
β”‚ β”œβ”€β”¬ rimraf@2.6.2
β”‚ β”‚ └── glob@7.1.3 deduped
β”‚ β”œβ”€β”€ signal-exit@3.0.2
β”‚ β”œβ”€β”¬ spawn-wrap@1.4.2
β”‚ β”‚ β”œβ”€β”€ foreground-child@1.5.6 deduped
β”‚ β”‚ β”œβ”€β”¬ mkdirp@0.5.1
β”‚ β”‚ β”‚ └── minimist@0.0.8
β”‚ β”‚ β”œβ”€β”€ os-homedir@1.0.2
β”‚ β”‚ β”œβ”€β”€ rimraf@2.6.2 deduped
β”‚ β”‚ β”œβ”€β”€ signal-exit@3.0.2 deduped
β”‚ β”‚ └─┬ which@1.3.1
β”‚ β”‚   └── isexe@2.0.0
β”‚ β”œβ”€β”¬ test-exclude@5.0.0
β”‚ β”‚ β”œβ”€β”€ arrify@1.0.1 deduped
β”‚ β”‚ β”œβ”€β”€ minimatch@3.0.4 deduped
β”‚ β”‚ β”œβ”€β”¬ read-pkg-up@4.0.0
β”‚ β”‚ β”‚ β”œβ”€β”€ find-up@3.0.0 deduped
β”‚ β”‚ β”‚ └─┬ read-pkg@3.0.0
β”‚ β”‚ β”‚   β”œβ”€β”¬ load-json-file@4.0.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ graceful-fs@4.1.11 deduped
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”¬ parse-json@4.0.0
β”‚ β”‚ β”‚   β”‚ β”‚ β”œβ”€β”¬ error-ex@1.3.2
β”‚ β”‚ β”‚   β”‚ β”‚ β”‚ └── is-arrayish@0.2.1
β”‚ β”‚ β”‚   β”‚ β”‚ └── json-parse-better-errors@1.0.2
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ pify@3.0.0 deduped
β”‚ β”‚ β”‚   β”‚ └── strip-bom@3.0.0 deduped
β”‚ β”‚ β”‚   β”œβ”€β”¬ normalize-package-data@2.4.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ hosted-git-info@2.7.1
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”¬ is-builtin-module@1.0.0
β”‚ β”‚ β”‚   β”‚ β”‚ └── builtin-modules@1.1.1
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ semver@5.5.0
β”‚ β”‚ β”‚   β”‚ └─┬ validate-npm-package-license@3.0.3
β”‚ β”‚ β”‚   β”‚   β”œβ”€β”¬ spdx-correct@3.0.0
β”‚ β”‚ β”‚   β”‚   β”‚ β”œβ”€β”€ spdx-expression-parse@3.0.0 deduped
β”‚ β”‚ β”‚   β”‚   β”‚ └── spdx-license-ids@3.0.0
β”‚ β”‚ β”‚   β”‚   └─┬ spdx-expression-parse@3.0.0
β”‚ β”‚ β”‚   β”‚     β”œβ”€β”€ spdx-exceptions@2.1.0
β”‚ β”‚ β”‚   β”‚     └── spdx-license-ids@3.0.0 deduped
β”‚ β”‚ β”‚   └─┬ path-type@3.0.0
β”‚ β”‚ β”‚     └── pify@3.0.0 deduped
β”‚ β”‚ └── require-main-filename@1.0.1
β”‚ β”œβ”€β”€ uuid@3.3.2
β”‚ β”œβ”€β”¬ yargs@11.1.0
β”‚ β”‚ β”œβ”€β”¬ cliui@4.1.0
β”‚ β”‚ β”‚ β”œβ”€β”€ string-width@2.1.1 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ strip-ansi@4.0.0 deduped
β”‚ β”‚ β”‚ └─┬ wrap-ansi@2.1.0
β”‚ β”‚ β”‚   β”œβ”€β”¬ string-width@1.0.2
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ code-point-at@1.1.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”¬ is-fullwidth-code-point@1.0.0
β”‚ β”‚ β”‚   β”‚ β”‚ └── number-is-nan@1.0.1
β”‚ β”‚ β”‚   β”‚ └── strip-ansi@3.0.1 deduped
β”‚ β”‚ β”‚   └─┬ strip-ansi@3.0.1
β”‚ β”‚ β”‚     └── ansi-regex@2.1.1
β”‚ β”‚ β”œβ”€β”€ decamelize@1.2.0
β”‚ β”‚ β”œβ”€β”¬ find-up@2.1.0
β”‚ β”‚ β”‚ └─┬ locate-path@2.0.0
β”‚ β”‚ β”‚   β”œβ”€β”¬ p-locate@2.0.0
β”‚ β”‚ β”‚   β”‚ └─┬ p-limit@1.3.0
β”‚ β”‚ β”‚   β”‚   └── p-try@1.0.0
β”‚ β”‚ β”‚   └── path-exists@3.0.0 deduped
β”‚ β”‚ β”œβ”€β”€ get-caller-file@1.0.3
β”‚ β”‚ β”œβ”€β”¬ os-locale@2.1.0
β”‚ β”‚ β”‚ β”œβ”€β”¬ execa@0.7.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ cross-spawn@5.1.0
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ lru-cache@4.1.3 deduped
β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ shebang-command@1.2.0
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ └── shebang-regex@1.0.0
β”‚ β”‚ β”‚ β”‚ β”‚ └── which@1.3.1 deduped
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ get-stream@3.0.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ is-stream@1.1.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ npm-run-path@2.0.2
β”‚ β”‚ β”‚ β”‚ β”‚ └── path-key@2.0.1
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ p-finally@1.0.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ signal-exit@3.0.2 deduped
β”‚ β”‚ β”‚ β”‚ └── strip-eof@1.0.0
β”‚ β”‚ β”‚ β”œβ”€β”¬ lcid@1.0.0
β”‚ β”‚ β”‚ β”‚ └── invert-kv@1.0.0
β”‚ β”‚ β”‚ └─┬ mem@1.1.0
β”‚ β”‚ β”‚   └── mimic-fn@1.2.0
β”‚ β”‚ β”œβ”€β”€ require-directory@2.1.1
β”‚ β”‚ β”œβ”€β”€ require-main-filename@1.0.1 deduped
β”‚ β”‚ β”œβ”€β”€ set-blocking@2.0.0
β”‚ β”‚ β”œβ”€β”¬ string-width@2.1.1
β”‚ β”‚ β”‚ β”œβ”€β”€ is-fullwidth-code-point@2.0.0
β”‚ β”‚ β”‚ └─┬ strip-ansi@4.0.0
β”‚ β”‚ β”‚   └── ansi-regex@3.0.0
β”‚ β”‚ β”œβ”€β”€ which-module@2.0.0
β”‚ β”‚ β”œβ”€β”€ y18n@3.2.1
β”‚ β”‚ └── yargs-parser@9.0.2 deduped
β”‚ └─┬ yargs-parser@9.0.2
β”‚   └── camelcase@4.1.0
β”œβ”€β”¬ request@2.88.0
β”‚ β”œβ”€β”€ aws-sign2@0.7.0
β”‚ β”œβ”€β”€ aws4@1.8.0
β”‚ β”œβ”€β”€ caseless@0.12.0
β”‚ β”œβ”€β”¬ combined-stream@1.0.7
β”‚ β”‚ └── delayed-stream@1.0.0
β”‚ β”œβ”€β”€ extend@3.0.2
β”‚ β”œβ”€β”€ forever-agent@0.6.1
β”‚ β”œβ”€β”¬ form-data@2.3.3
β”‚ β”‚ β”œβ”€β”€ asynckit@0.4.0
β”‚ β”‚ β”œβ”€β”€ combined-stream@1.0.7 deduped
β”‚ β”‚ └── mime-types@2.1.21 deduped
β”‚ β”œβ”€β”¬ har-validator@5.1.3
β”‚ β”‚ β”œβ”€β”¬ ajv@6.7.0
β”‚ β”‚ β”‚ β”œβ”€β”€ fast-deep-equal@2.0.1
β”‚ β”‚ β”‚ β”œβ”€β”€ fast-json-stable-stringify@2.0.0
β”‚ β”‚ β”‚ β”œβ”€β”€ json-schema-traverse@0.4.1
β”‚ β”‚ β”‚ └─┬ uri-js@4.2.2
β”‚ β”‚ β”‚   └── punycode@2.1.1
β”‚ β”‚ └── har-schema@2.0.0
β”‚ β”œβ”€β”¬ http-signature@1.2.0
β”‚ β”‚ β”œβ”€β”€ assert-plus@1.0.0
β”‚ β”‚ β”œβ”€β”¬ jsprim@1.4.1
β”‚ β”‚ β”‚ β”œβ”€β”€ assert-plus@1.0.0 deduped
β”‚ β”‚ β”‚ β”œβ”€β”€ extsprintf@1.3.0
β”‚ β”‚ β”‚ β”œβ”€β”€ json-schema@0.2.3
β”‚ β”‚ β”‚ └─┬ verror@1.10.0
β”‚ β”‚ β”‚   β”œβ”€β”€ assert-plus@1.0.0 deduped
β”‚ β”‚ β”‚   β”œβ”€β”€ core-util-is@1.0.2
β”‚ β”‚ β”‚   └── extsprintf@1.3.0 deduped
β”‚ β”‚ └─┬ sshpk@1.16.1
β”‚ β”‚   β”œβ”€β”¬ asn1@0.2.4
β”‚ β”‚   β”‚ └── safer-buffer@2.1.2 deduped
β”‚ β”‚   β”œβ”€β”€ assert-plus@1.0.0 deduped
β”‚ β”‚   β”œβ”€β”¬ bcrypt-pbkdf@1.0.2
β”‚ β”‚   β”‚ └── tweetnacl@0.14.5 deduped
β”‚ β”‚   β”œβ”€β”¬ dashdash@1.14.1
β”‚ β”‚   β”‚ └── assert-plus@1.0.0 deduped
β”‚ β”‚   β”œβ”€β”¬ ecc-jsbn@0.1.2
β”‚ β”‚   β”‚ β”œβ”€β”€ jsbn@0.1.1 deduped
β”‚ β”‚   β”‚ └── safer-buffer@2.1.2 deduped
β”‚ β”‚   β”œβ”€β”¬ getpass@0.1.7
β”‚ β”‚   β”‚ └── assert-plus@1.0.0 deduped
β”‚ β”‚   β”œβ”€β”€ jsbn@0.1.1
β”‚ β”‚   β”œβ”€β”€ safer-buffer@2.1.2
β”‚ β”‚   └── tweetnacl@0.14.5
β”‚ β”œβ”€β”€ is-typedarray@1.0.0
β”‚ β”œβ”€β”€ isstream@0.1.2
β”‚ β”œβ”€β”€ json-stringify-safe@5.0.1
β”‚ β”œβ”€β”¬ mime-types@2.1.21
β”‚ β”‚ └── mime-db@1.37.0
β”‚ β”œβ”€β”€ oauth-sign@0.9.0
β”‚ β”œβ”€β”€ performance-now@2.1.0
β”‚ β”œβ”€β”€ qs@6.5.2
β”‚ β”œβ”€β”€ safe-buffer@5.1.2
β”‚ β”œβ”€β”¬ tough-cookie@2.4.3
β”‚ β”‚ β”œβ”€β”€ psl@1.1.31
β”‚ β”‚ └── punycode@1.4.1
β”‚ β”œβ”€β”¬ tunnel-agent@0.6.0
β”‚ β”‚ └── safe-buffer@5.1.2 deduped
β”‚ └── uuid@3.3.2
β”œβ”€β”¬ request-promise@4.2.2
β”‚ β”œβ”€β”€ bluebird@3.5.3
β”‚ β”œβ”€β”¬ request-promise-core@1.1.1
β”‚ β”‚ └── lodash@4.17.11
β”‚ β”œβ”€β”€ stealthy-require@1.1.1
β”‚ └── tough-cookie@2.4.3 deduped
β”œβ”€β”¬ rest-architect@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/rest-architect
β”‚ β”œβ”€β”¬ easy-html-email@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/easy-html-email
β”‚ β”‚ └── nodemailer@5.1.1
β”‚ β”œβ”€β”¬ http-wrapper@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/http-wrapper
β”‚ β”‚ β”œβ”€β”€ forward-emitter@0.1.1
β”‚ β”‚ └── unfig@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/unfig deduped
β”‚ β”œβ”€β”¬ murmurhash3@0.4.2
β”‚ β”‚ └── nan@2.12.1
β”‚ └─┬ persistent-objects@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/persistent-objects
β”‚   β”œβ”€β”¬ bcrypt@3.0.3
β”‚   β”‚ β”œβ”€β”€ nan@2.12.1 deduped
β”‚   β”‚ └─┬ node-pre-gyp@0.12.0
β”‚   β”‚   β”œβ”€β”€ detect-libc@1.0.3
β”‚   β”‚   β”œβ”€β”¬ mkdirp@0.5.1
β”‚   β”‚   β”‚ └── minimist@0.0.8
β”‚   β”‚   β”œβ”€β”¬ needle@2.2.4
β”‚   β”‚   β”‚ β”œβ”€β”¬ debug@2.6.9
β”‚   β”‚   β”‚ β”‚ └── ms@2.0.0
β”‚   β”‚   β”‚ β”œβ”€β”¬ iconv-lite@0.4.24
β”‚   β”‚   β”‚ β”‚ └── safer-buffer@2.1.2
β”‚   β”‚   β”‚ └── sax@1.2.4
β”‚   β”‚   β”œβ”€β”¬ nopt@4.0.1
β”‚   β”‚   β”‚ β”œβ”€β”€ abbrev@1.1.1
β”‚   β”‚   β”‚ └─┬ osenv@0.1.5
β”‚   β”‚   β”‚   β”œβ”€β”€ os-homedir@1.0.2
β”‚   β”‚   β”‚   └── os-tmpdir@1.0.2
β”‚   β”‚   β”œβ”€β”¬ npm-packlist@1.1.12
β”‚   β”‚   β”‚ β”œβ”€β”¬ ignore-walk@3.0.1
β”‚   β”‚   β”‚ β”‚ └─┬ minimatch@3.0.4
β”‚   β”‚   β”‚ β”‚   └─┬ brace-expansion@1.1.11
β”‚   β”‚   β”‚ β”‚     β”œβ”€β”€ balanced-match@1.0.0
β”‚   β”‚   β”‚ β”‚     └── concat-map@0.0.1
β”‚   β”‚   β”‚ └── npm-bundled@1.0.5
β”‚   β”‚   β”œβ”€β”¬ npmlog@4.1.2
β”‚   β”‚   β”‚ β”œβ”€β”¬ are-we-there-yet@1.1.5
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”€ delegates@1.0.0
β”‚   β”‚   β”‚ β”‚ └─┬ readable-stream@2.3.5
β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ core-util-is@1.0.2
β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ inherits@2.0.3 deduped
β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ isarray@1.0.0
β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ process-nextick-args@2.0.0
β”‚   β”‚   β”‚ β”‚   β”œβ”€β”€ safe-buffer@5.1.1
β”‚   β”‚   β”‚ β”‚   β”œβ”€β”¬ string_decoder@1.0.3
β”‚   β”‚   β”‚ β”‚   β”‚ └── safe-buffer@5.1.1 deduped
β”‚   β”‚   β”‚ β”‚   └── util-deprecate@1.0.2
β”‚   β”‚   β”‚ β”œβ”€β”€ console-control-strings@1.1.0
β”‚   β”‚   β”‚ β”œβ”€β”¬ gauge@2.7.4
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”€ aproba@1.2.0
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”€ console-control-strings@1.1.0 deduped
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”€ has-unicode@2.0.1
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”€ object-assign@4.1.1
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”€ signal-exit@3.0.2
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”¬ string-width@1.0.2
β”‚   β”‚   β”‚ β”‚ β”‚ β”œβ”€β”€ code-point-at@1.1.0
β”‚   β”‚   β”‚ β”‚ β”‚ β”œβ”€β”¬ is-fullwidth-code-point@1.0.0
β”‚   β”‚   β”‚ β”‚ β”‚ β”‚ └── number-is-nan@1.0.1
β”‚   β”‚   β”‚ β”‚ β”‚ └── strip-ansi@3.0.1 deduped
β”‚   β”‚   β”‚ β”‚ β”œβ”€β”¬ strip-ansi@3.0.1
β”‚   β”‚   β”‚ β”‚ β”‚ └── ansi-regex@2.1.1
β”‚   β”‚   β”‚ β”‚ └─┬ wide-align@1.1.3
β”‚   β”‚   β”‚ β”‚   └── string-width@1.0.2 deduped
β”‚   β”‚   β”‚ └── set-blocking@2.0.0
β”‚   β”‚   β”œβ”€β”¬ rc@1.2.8
β”‚   β”‚   β”‚ β”œβ”€β”€ deep-extend@0.6.0
β”‚   β”‚   β”‚ β”œβ”€β”€ ini@1.3.5
β”‚   β”‚   β”‚ β”œβ”€β”€ minimist@1.2.0
β”‚   β”‚   β”‚ └── strip-json-comments@2.0.1
β”‚   β”‚   β”œβ”€β”¬ rimraf@2.6.2
β”‚   β”‚   β”‚ └─┬ glob@7.1.2
β”‚   β”‚   β”‚   β”œβ”€β”€ fs.realpath@1.0.0
β”‚   β”‚   β”‚   β”œβ”€β”¬ inflight@1.0.6
β”‚   β”‚   β”‚   β”‚ β”œβ”€β”€ once@1.4.0 deduped
β”‚   β”‚   β”‚   β”‚ └── wrappy@1.0.2
β”‚   β”‚   β”‚   β”œβ”€β”€ inherits@2.0.3
β”‚   β”‚   β”‚   β”œβ”€β”€ minimatch@3.0.4 deduped
β”‚   β”‚   β”‚   β”œβ”€β”¬ once@1.4.0
β”‚   β”‚   β”‚   β”‚ └── wrappy@1.0.2 deduped
β”‚   β”‚   β”‚   └── path-is-absolute@1.0.1
β”‚   β”‚   β”œβ”€β”€ semver@5.6.0
β”‚   β”‚   └─┬ tar@4.4.8
β”‚   β”‚     β”œβ”€β”€ chownr@1.1.1
β”‚   β”‚     β”œβ”€β”¬ fs-minipass@1.2.5
β”‚   β”‚     β”‚ └── minipass@2.3.4 deduped
β”‚   β”‚     β”œβ”€β”¬ minipass@2.3.4
β”‚   β”‚     β”‚ β”œβ”€β”€ safe-buffer@5.1.2
β”‚   β”‚     β”‚ └── yallist@3.0.2
β”‚   β”‚     β”œβ”€β”¬ minizlib@1.1.1
β”‚   β”‚     β”‚ └── minipass@2.3.4 deduped
β”‚   β”‚     β”œβ”€β”€ mkdirp@0.5.1 deduped
β”‚   β”‚     β”œβ”€β”€ safe-buffer@5.1.2
β”‚   β”‚     └── yallist@3.0.2
β”‚   β”œβ”€β”€ http-wrapper@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/http-wrapper deduped
β”‚   β”œβ”€β”€ mout@1.1.0
β”‚   β”œβ”€β”¬ mysql@2.16.0
β”‚   β”‚ β”œβ”€β”€ bignumber.js@4.1.0
β”‚   β”‚ β”œβ”€β”¬ readable-stream@2.3.6
β”‚   β”‚ β”‚ β”œβ”€β”€ core-util-is@1.0.2 deduped
β”‚   β”‚ β”‚ β”œβ”€β”€ inherits@2.0.3 deduped
β”‚   β”‚ β”‚ β”œβ”€β”€ isarray@1.0.0
β”‚   β”‚ β”‚ β”œβ”€β”€ process-nextick-args@2.0.0
β”‚   β”‚ β”‚ β”œβ”€β”€ safe-buffer@5.1.2 deduped
β”‚   β”‚ β”‚ β”œβ”€β”¬ string_decoder@1.1.1
β”‚   β”‚ β”‚ β”‚ └── safe-buffer@5.1.2 deduped
β”‚   β”‚ β”‚ └── util-deprecate@1.0.2
β”‚   β”‚ β”œβ”€β”€ safe-buffer@5.1.2 deduped
β”‚   β”‚ └── sqlstring@2.3.1
β”‚   └── uuid@3.3.2 deduped
└─┬ unfig@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/unfig
  └─┬ untainted@1.0.0 -> /home/snapwebsites/private/rest-architect/server/lib/untainted
    β”œβ”€β”€ file-type@10.7.1
    └── validator@10.11.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
frankzieglermbccommented, Jan 15, 2020

I experienced the same issue. one file would not show up in the coverage report. removing the node_modules folder and package-lock.json file as suggested in related issues did not fix it. I went on and commented all the code in the file that was missing and sure enough it showed up again. after un-commenting code bit by bit, I noticed that one of my function was incorrect.

function myFunction(arg1, arg1, arg2, arg3) {}

after removing the duplicate parameter the file showed up in the coverage report again. so in the end, it was just malformed code. copy-paste error on my side.

not sure if this is related. I just wanted to share how I fixed my issue in case someone else runs into the same problem.

also my dependencies: β€œaws-sdk-mock”: β€œ^5.0.0”, β€œchai”: β€œ^4.2.0”, β€œmocha”: β€œ^7.0.0”, β€œassert”: β€œ^2.0.0”, β€œnyc”: β€œ^15.0.0”, β€œsinon”: β€œ^8.0.0”

1reaction
vaelinn123commented, Jun 19, 2019

I see this was closed, but wanted to throw some potentially helpful info for others coming to this issue. I had this issue when we upgraded to nyc version 14.1.1 but was able to get full instrumentation back by reverting to using nyc version 13.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

fortran - Missing files with code coverage - Stack Overflow
I have a project that I compile with the intel toolchain. All the .f90 files are compiled to corresponding .o files in the...
Read more >
Files missing in Coverage "Lines to Cover" - Sonar Community
The reported coverage is wrong since both files covered by test but also files NOT covered by tests are missing. Our quality gateway...
Read more >
Autodesk: At least one file is missing or has not ... - YouTube
#School_of_Civil_Engineering. Autodesk: At least one file is missing or has not been downloaded yet | Autodesk Installing Problem.
Read more >
Code Coverage Data missing from build
Customers reported the issue that code coverage data is missing in the build result since yesterday. API queries confirmed that there is no...
Read more >
Command line usage β€” Coverage.py 6.4.4 documentation
xml – Produce an XML report with coverage results. json – Produce a JSON report with ... Without a .py file, coverage.py can't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found