Saturday 8 April 2017

Cant run JS tests in JHipster app

I am getting the following error when running gulp test:

[20:03:47] Using gulpfile ~/git/myapp/gulpfile.js
[20:03:47] Starting 'wiredep:test'...
[20:03:47] Starting 'ngconstant:dev'...
[20:03:47] 'ngconstant:dev' errored after 129 ms
[20:03:47] Error in plugin 'gulp-tslint-log'
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at getFilePath (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/index.js:95:27)
    at DestroyableTransform.objectStream [as _transform] (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/index.js:60:25)
    at DestroyableTransform.Transform._read (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at DestroyableTransform.Writable.write (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at DestroyableTransform.Writable.end (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/node_modules/readable-stream/lib/_stream_writable.js:352:10)
    at ngConstantPlugin (/home/user/git/myapp/node_modules/gulp-ng-constant-fork/index.js:33:16)
    at Gulp.<anonymous> (/home/user/git/myapp/gulpfile.js:154:12)
    at module.exports (/home/user/git/myapp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/home/user/git/myapp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/home/user/git/myapp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/home/user/git/myapp/node_modules/orchestrator/index.js:134:8)
[20:03:47] Finished 'wiredep:test' after 342

Versions

Im using the following versions:

$ node --version v6.10.1

$ npm --version 3.10.10

$ nodejs --version v6.10.1



via Magick

No comments:

Post a Comment