jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.18k stars 6.45k forks source link

Node 4 travis ci, the tests fail #794

Closed AdamKyle closed 8 years ago

AdamKyle commented 8 years ago
Starting with io.js 3 and Node.js 4, building native extensions requires C++11-compatible compiler, which seems unavailable on this VM. Please read https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements.
$ node --version
v0.10.36
$ npm --version
1.4.28
$ nvm --version
0.23.3
install
86.79s$ npm install 
npm WARN engine jest-cli@0.9.2: wanted: {"node":">= 4"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine escodegen@1.7.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine escodegen@1.8.0: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.36","npm":"1.4.28"})
vinyl-source-stream@1.1.0 node_modules/vinyl-source-stream
├── vinyl@0.4.6 (clone-stats@0.0.1, clone@0.2.0)
└── through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.33)
gulp@3.9.0 node_modules/gulp
├── interpret@0.6.6
├── pretty-hrtime@1.0.2
├── deprecated@0.0.1
├── archy@1.0.0
├── tildify@1.1.2 (os-homedir@1.0.1)
├── minimist@1.2.0
├── v8flags@2.0.11 (user-home@1.1.1)
├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1, ansi-styles@2.2.0)
├── semver@4.3.6
├── orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)
├── liftoff@2.2.0 (extend@2.0.1, rechoir@0.6.2, flagged-respawn@0.3.1, resolve@1.1.7, findup-sync@0.3.0)
├── gulp-util@3.0.7 (array-differ@1.0.0, array-uniq@1.0.2, beeper@1.1.0, lodash._reevaluate@3.0.0, lodash._reinterpolate@3.0.0, lodash._reescape@3.0.0, object-assign@3.0.0, replace-ext@0.0.1, has-gulplog@0.1.0, fancy-log@1.2.0, gulplog@1.0.0, lodash.template@3.6.2, vinyl@0.5.3, through2@2.0.1, multipipe@0.1.2, dateformat@1.0.12)
└── vinyl-fs@0.3.14 (graceful-fs@3.0.8, strip-bom@1.0.0, vinyl@0.4.6, defaults@1.0.3, mkdirp@0.5.1, through2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)
browserify@13.0.0 node_modules/browserify
├── https-browserify@0.0.1
├── htmlescape@1.1.0
├── tty-browserify@0.0.0
├── duplexer2@0.1.4
├── isarray@0.0.1
├── path-browserify@0.0.0
├── inherits@2.0.1
├── os-browserify@0.1.2
├── string_decoder@0.10.31
├── through2@2.0.1
├── constants-browserify@1.0.0
├── process@0.11.2
├── browser-resolve@1.11.1
├── stream-browserify@2.0.1
├── defined@1.0.0
├── punycode@1.4.0
├── xtend@4.0.1
├── read-only-stream@2.0.0
├── querystring-es3@0.2.1
├── assert@1.3.0
├── timers-browserify@1.4.2
├── domain-browser@1.1.7
├── deps-sort@2.0.0
├── util@0.10.3
├── events@1.1.0
├── parents@1.0.1 (path-platform@0.11.15)
├── concat-stream@1.5.1 (typedarray@0.0.6)
├── vm-browserify@0.0.4 (indexof@0.0.1)
├── has@1.0.1 (function-bind@1.1.0)
├── console-browserify@1.1.0 (date-now@0.1.4)
├── shell-quote@1.4.3 (array-filter@0.0.1, array-map@0.0.0, array-reduce@0.0.0, jsonify@0.0.0)
├── subarg@1.0.0 (minimist@1.2.0)
├── labeled-stream-splicer@2.0.0 (stream-splicer@2.0.0)
├── shasum@1.0.2 (sha.js@2.4.5, json-stable-stringify@0.0.1)
├── url@0.11.0 (punycode@1.3.2, querystring@0.2.0)
├── readable-stream@2.0.5 (process-nextick-args@1.0.6, util-deprecate@1.0.2, core-util-is@1.0.2)
├── stream-http@2.2.0 (builtin-status-codes@2.0.0, to-arraybuffer@1.0.1)
├── glob@5.0.15 (path-is-absolute@1.0.0, once@1.3.3, inflight@1.0.4, minimatch@3.0.0)
├── resolve@1.1.7
├── buffer@4.5.0 (isarray@1.0.0, ieee754@1.1.6, base64-js@1.1.1)
├── JSONStream@1.1.1 (through@2.3.8, jsonparse@1.2.0)
├── syntax-error@1.1.5 (acorn@2.7.0)
├── browser-pack@6.0.1 (umd@3.0.1, combine-source-map@0.7.1)
├── crypto-browserify@3.11.0 (create-hmac@1.1.4, randombytes@2.0.3, pbkdf2@3.0.4, create-hash@1.1.2, browserify-cipher@1.0.0, create-ecdh@4.0.0, diffie-hellman@5.0.2, public-encrypt@4.0.0, browserify-sign@4.0.0)
├── browserify-zlib@0.1.4 (pako@0.2.8)
├── insert-module-globals@7.0.1 (is-buffer@1.1.3, lexical-scope@1.2.0, combine-source-map@0.7.1)
└── module-deps@4.0.5 (stream-combiner2@1.1.1, detective@4.3.1)
babel-jest@9.0.3 node_modules/babel-jest
├── babel-preset-jest@1.0.0 (babel-plugin-jest-unmock@1.0.0)
└── babel-core@6.7.2 (slash@1.0.0, babel-messages@6.7.2, shebang-regex@1.0.0, path-exists@1.0.0, path-is-absolute@1.0.0, babel-helpers@6.6.0, private@0.1.6, convert-source-map@1.2.0, babel-template@6.7.0, debug@2.2.0, babel-code-frame@6.7.2, minimatch@2.0.10, babel-generator@6.7.2, json5@0.4.0, babel-types@6.7.2, source-map@0.5.3, babel-traverse@6.7.3, babylon@6.7.0, babel-register@6.7.2, babel-runtime@5.8.35, lodash@3.10.1)
jest-cli@0.9.2 node_modules/jest-cli
├── graceful-fs@4.1.3
├── json-stable-stringify@1.0.1 (jsonify@0.0.0)
├── lodash.template@3.6.2 (lodash._basetostring@3.0.1, lodash._reinterpolate@3.0.0, lodash._basevalues@3.0.0, lodash._basecopy@3.0.1, lodash.templatesettings@3.1.1, lodash.restparam@3.6.1, lodash._isiterateecall@3.0.9, lodash.escape@3.2.0, lodash.keys@3.1.2)
├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, strip-ansi@3.0.1, ansi-styles@2.2.0, has-ansi@2.0.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── which@1.2.4 (isexe@1.1.2, is-absolute@0.1.7)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── resolve@1.1.7
├── diff@2.2.1
├── worker-farm@1.3.1 (xtend@4.0.1, errno@0.1.4)
├── sane@1.3.3 (watch@0.10.0, minimist@1.2.0, exec-sh@0.2.0, minimatch@0.2.14, fb-watchman@1.9.0, walker@1.0.7)
├── node-haste@2.8.0 (absolute-path@0.0.0, throat@2.0.2, denodeify@1.2.1, debug@2.2.0)
├── cover@0.2.9 (which@1.0.9, cli-table@0.0.2, underscore@1.2.4, underscore.string@2.0.0)
├── jsdom@7.2.2 (acorn-globals@1.0.9, webidl-conversions@2.0.1, abab@1.0.3, xml-name-validator@2.0.1, sax@1.1.6, cssom@0.3.1, symbol-tree@3.1.4, nwmatcher@1.3.7, tough-cookie@2.2.2, whatwg-url-compat@0.6.5, parse5@1.5.1, acorn@2.7.0, escodegen@1.8.0, request@2.69.0, cssstyle@0.2.34)
└── istanbul@0.4.2 (abbrev@1.0.7, nopt@3.0.6, wordwrap@1.0.0, once@1.3.3, supports-color@3.1.2, async@1.5.2, esprima@2.7.2, fileset@0.2.1, js-yaml@3.5.4, escodegen@1.7.1, handlebars@4.0.5)
babel-polyfill@6.7.2 node_modules/babel-polyfill
├── babel-regenerator-runtime@6.5.0
├── core-js@2.1.4
└── babel-runtime@5.8.35 (core-js@1.2.6)
babelify@7.2.0 node_modules/babelify
├── object-assign@4.0.1
└── babel-core@6.7.2 (slash@1.0.0, shebang-regex@1.0.0, path-exists@1.0.0, path-is-absolute@1.0.0, babel-messages@6.7.2, babel-template@6.7.0, babel-helpers@6.6.0, private@0.1.6, convert-source-map@1.2.0, debug@2.2.0, minimatch@2.0.10, babel-code-frame@6.7.2, babel-generator@6.7.2, json5@0.4.0, source-map@0.5.3, babel-types@6.7.2, babel-traverse@6.7.3, babylon@6.7.0, babel-register@6.7.2, lodash@3.10.1, babel-runtime@5.8.35)
babel-preset-es2015@6.6.0 node_modules/babel-preset-es2015
├── babel-plugin-transform-es2015-literals@6.5.0 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-typeof-symbol@6.6.0 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-destructuring@6.6.5 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-shorthand-properties@6.5.0 (babel-types@6.7.2, babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-template-literals@6.6.5 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-block-scoped-functions@6.6.5 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-sticky-regex@6.5.0 (babel-runtime@5.8.35, babel-types@6.7.2, babel-helper-regex@6.6.5)
├── babel-plugin-transform-es2015-computed-properties@6.6.5 (babel-runtime@5.8.35, babel-helper-define-map@6.6.5, babel-template@6.7.0)
├── babel-plugin-transform-es2015-arrow-functions@6.5.2 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-classes@6.6.5 (babel-helper-optimise-call-expression@6.6.0, babel-messages@6.7.2, babel-helper-replace-supers@6.7.0, babel-helper-function-name@6.6.0, babel-template@6.7.0, babel-types@6.7.2, babel-traverse@6.7.3, babel-runtime@5.8.35, babel-helper-define-map@6.6.5)
├── babel-plugin-transform-es2015-modules-commonjs@6.7.0 (babel-plugin-transform-strict-mode@6.6.5, babel-types@6.7.2, babel-runtime@5.8.35, babel-template@6.7.0)
├── babel-plugin-transform-es2015-for-of@6.6.0 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-duplicate-keys@6.6.4 (babel-types@6.7.2, babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-object-super@6.6.5 (babel-helper-replace-supers@6.7.0, babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-block-scoping@6.7.1 (babel-template@6.7.0, lodash@3.10.1, babel-types@6.7.2, babel-traverse@6.7.3, babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-parameters@6.7.0 (babel-helper-get-function-arity@6.6.5, babel-helper-call-delegate@6.6.5, babel-template@6.7.0, babel-traverse@6.7.3, babel-types@6.7.2, babel-runtime@5.8.35)
├── babel-plugin-check-es2015-constants@6.7.2 (babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-unicode-regex@6.5.0 (regexpu-core@1.0.0, babel-helper-regex@6.6.5, babel-runtime@5.8.35)
├── babel-plugin-transform-es2015-function-name@6.5.0 (babel-types@6.7.2, babel-helper-function-name@6.6.0, babel-runtime@5.8.35)
├── babel-plugin-transform-regenerator@6.6.5 (babel-plugin-syntax-async-functions@6.5.0, private@0.1.6, babylon@6.7.0, babel-core@6.7.2, babel-traverse@6.7.3, babel-types@6.7.2, babel-runtime@5.8.35)
└── babel-plugin-transform-es2015-spread@6.6.5 (babel-runtime@5.8.35)
0.32s$ npm test
> toy-box@0.0.4 test /home/travis/build/AdamKyle/Toy-Box
> jest
/home/travis/build/AdamKyle/Toy-Box/node_modules/jest-cli/bin/jest.js:12
const fs = require('graceful-fs');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3
npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0
The command "npm test" exited with 1.
Done. Your build exited with 1.

I know this time its not me because all my tests pass on node vs 5. Node vs 4 how ever fails .... Is there an update I missed?

My package.json has "jest-cli": "*"

cpojer commented 8 years ago

You are not using Node 4. Your log clearly says it is Node 0.10 in the third line. Node 0.10 is not supported by jest 0.5+.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.