Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

problem with gulp-mocha? #100

Open
drjasonharrison opened this issue Apr 13, 2017 · 0 comments
Open

problem with gulp-mocha? #100

drjasonharrison opened this issue Apr 13, 2017 · 0 comments

Comments

@drjasonharrison
Copy link

drjasonharrison commented Apr 13, 2017

I'm using to use next-update with an node project that uses gulp-mocha. The project also depends on a second project loaded from a local npm server. That project also uses gulp-mocha.

The second project is failing during unit tests.

$ node --version
v7.8.0
$ npm --version
4.2.0

Packages.json includes:

  "dependencies": {
    "ajv": "^4.9.2",
    "async": "^1.5.0",
    "joi": "^5.1.0",
    "jwt-auth": "~0.2.1",
    "lodash": "^3.10.1",
    "moment": "^2.10.6",
    "multer": "^1.1.0",
    "my-other-package": "~1.7.2",
    "node-uuid": "^1.4.3",
    "proxy-agent": "^2.0.0",
    "q": "^1.4.1",
    "restify": "^4.0.3",
    "string-format": "^0.2.1",
    "superagent": "~1.4.0",
    "superagent-proxy": "~1.0.0",
    "vogels": "^2.0.0-rc10"
  },
  "devDependencies": {
    "chai": "^3.4.1",
    "chai-as-promised": "^5.1.0",
    "download": "^3.2.0",
    "download-status": "^2.1.0",
    "gulp": "^3.9.0",
    "gulp-istanbul": "^0.10.1",
    "gulp-jshint": "^1.11.2",
    "gulp-mocha": "^2.1.3",
    "jshint-stylish": "^2.0.1",
    "mocha": "^2.3.3",
    "ps-tree": "^1.0.1",
    "raml2html": "^2.3.0",
    "sinon": "^1.17.2",
    "supertest": "^1.1.0"
  }

This is the output when next-update is run:

$ next-update
next-update@1.5.1 - Tests if module's dependencies can be updated to the newer version without breaking the tests
checking if the current state works
  npm test
> ndg-temp-storage@0.0.2 test /Users/jameshar/projects/my-npm-package
> gulp

[14:24:36] Using gulpfile  /Users/jameshar/projects/my-npm-package/gulpfile.js
[14:24:36] Starting 'jshint'...
[14:24:36] Starting 'setup'...
Captured pid 21510
Initializing DynamoDB Local with the following configuration:
Port:	8000
InMemory:	true
DbPath:	null
SharedDb:	true
shouldDelayTransientStatuses:	true
CorsParams:	*

[14:24:38] Finished 'jshint' after 2.49 s
[14:24:41] Finished 'setup' after 5.01 s
[14:24:41] Starting 'pre-test'...
[14:24:43] Finished 'pre-test' after 2.25 s
[14:24:43] Starting 'test'...
pid =====> 21510
[14:24:43] 'test' errored after 46 ms
[14:24:43] Error in plugin 'gulp-mocha'
Message:
    Cannot find module 'nock'
Details:
    code: MODULE_NOT_FOUND
Stack:
Error: Cannot find module 'nock'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/jameshar/projects/my-npm-package/node_modules/my-other-module/tests/mocks/index.js:1:74)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Object.Module._extensions.(anonymous function) [as .js] (/Users/jameshar/projects/my-npm-package/node_modules/istanbul/lib/hook.js:109:37)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
npm ERR! Test failed.  See above for more details.
npm test returned 1test errors:
npm ERR! Test failed.  See above for more details.
ERROR testing next working updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant