1
votes

I have an NPM project that uses Jasmine-Node for running unit tests.

My test suite (npm test) runs fine locally, but when I push my commits to GitHub my Travis CI build fails.

https://travis-ci.org/arthurakay/LintRoller/jobs/7002012

Does anyone know what is happening here? I don't think I need "console-browserify" but for some reason the build believes it's necessary.

For reference, see my ./hooks/pre-commit bash script to see where I call the unit test suite.

2
I am wondering if JSHint could be to blame here - github.com/jshint/jshint/issues/1055 I may need to specify specific versions of my dependent packages, not just >=x.x.xarthurakay

2 Answers

1
votes

It was an issue with JSHint, which was corrected in their own repo shortly after I asked this question.

https://github.com/jshint/jshint/commit/28cfa2e369b31afb6ccfb44ee1f0d7df71170133

In short, JSHint now requires console-browserify but at the moment I ran my build their repo was broken (or in some state that broke my build). Having said that, I probably do need to test against a specific version of each of my dependencies.

-1
votes

you could always install console-browserify to check if that solves the error.

npm install -S console-browserify

Perhaps you have console-browserify installed globally on your local machine