Closed PhillyWebGuy closed 11 years ago
A parse error means that one of the JS files (hopefully on the client-side, at least) has invalid syntax. I'd recommend starting by syntax-checking your files first... since you're using Grunt already, it's as easy as just hooking up a task plugin like grunt-jsvalidate or grunt-contrib-jshint.
Other than that, this is an issue with the setup of grunt-contrib-jasmine (or grunt-lib-phantomjs), not PhantomJS itself. Please create a new issue in one of those repos if syntax-checking your own JS files does not resolve the issue.
I have:
node v0.8.9 npm 1.1.61 grunt-cli v0.1.6 grunt v0.4.1 phantomjs 1.9.0 Mac OS 10.8.1
I execute the following from a terminal:
node_modules/grunt-cli/bin/grunt -v -d 1
And I (partially) get:
Testing jasmine specs via phantom
In particular, I am interested in:
And, also the fact that it should be running at least 1 spec, but appears not to be when it reports 0 specs in 0s.