Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot run tests with ./docs directory present #512

Open
JustinBeckwith opened this issue Jun 25, 2019 · 0 comments
Open

Cannot run tests with ./docs directory present #512

JustinBeckwith opened this issue Jun 25, 2019 · 0 comments
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. type: cleanup An internal cleanup or hygiene concern.

Comments

@JustinBeckwith
Copy link
Contributor

We use jsdoc to generate docs for the project. When you generate docs, then run npm test, you get a wild stack trace.

$ npm run docs
$ npm test

Using node.js 11.5.0 on OSX.

> nyc mocha  out/test/test-*.js

/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/convert-source-map/index.js:40
    throw new Error('An error occurred while trying to read the map file at ' + filepath + '\n' + e);
    ^

Error: An error occurred while trying to read the map file at /Users/beckwith/Code/cloud-profiler-nodejs/docs/scripts/jquery.min.map
Error: ENOENT: no such file or directory, open '/Users/beckwith/Code/cloud-profiler-nodejs/docs/scripts/jquery.min.map'
    at readFromFileMap (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/convert-source-map/index.js:40:11)
    at new Converter (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/convert-source-map/index.js:47:32)
    at Object.exports.fromMapFileComment (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/convert-source-map/index.js:110:10)
    at Object.exports.fromMapFileSource (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/convert-source-map/index.js:122:22)
    at SourceMaps.extractAndRegister (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/nyc/lib/source-maps.js:20:73)
    at /Users/beckwith/Code/cloud-profiler-nodejs/node_modules/nyc/index.js:253:56
    at transform (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/caching-transform/index.js:45:10)
    at /Users/beckwith/Code/cloud-profiler-nodejs/node_modules/caching-transform/index.js:54:11
    at NYC._transform (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/nyc/index.js:228:12)
    at NYC._maybeInstrumentSource (/Users/beckwith/Code/cloud-profiler-nodejs/node_modules/nyc/index.js:236:17)
@JustinBeckwith JustinBeckwith added the type: cleanup An internal cleanup or hygiene concern. label Jun 25, 2019
@google-cloud-label-sync google-cloud-label-sync bot added the api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. label Jan 31, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

1 participant