I was using jasmine-node this weekend (package.json says it’s version 1.0.28) and hit this error:
1 2 3 4 | ../node_modules/jasmine-node/lib/jasmine-node/cli.js:89 var existsSync = fs.existsSync || path.existsSync; ^ ReferenceError: fs is not defined |
It looks like this has already been reported here as Issue #186. The quick fix is to add the require declaration in yourself at the top of the file.
1 | var fs = require( 'fs' ); |
I think you meant var fs
Thanks! I’ve updated the post