You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just forked and followed exactly this guide Contributing. All steps were done successfully but running test the first time result in many failed tests.
Test Suites: 2 failed, 54 passed, 56 total
Tests: 32 failed, 284 passed, 316 total
Snapshots: 0 total
There were many errors but I have noticed most of them related to package.json, github-event, monorepo,
Some errors (there were many, if you want to see them all, let me know so I'll copy all console log).
github-event push › package.json added/modified for a not enabled repo (333)
github-event push › monorepo: subdirectory package.json, which is not listed in the config, was modified (555)
github-event push: monorepo › monorepo: new greenkeeper.json is added with 2 groups (3462)
github-event push: monorepo › monorepo: greenkeeper.json modified by user and it now has invalid groupname (mgm1)
/Users/tiendq/Github/greenkeeper/test/jobs/update-payments.js: babel-plugin-jest-hoist: The module factory of `jest.mock()` is not allowed to reference any out-of-scope variables. Invalid variable access: console
macOS 10.12.6
NodeJS 10.0.0
The text was updated successfully, but these errors were encountered:
This is one of the test errors I reported in original issue, interestingly I found out that it is a Jest's bug - it doesn't have console in the whitelist. They fixed it too with but not released.
The error caused by line 107 in file update-payments.js (test passed if I comment out this line):
FAIL test/jobs/update-payments.js
● Test suite failed to run
/Users/tiendq/Github/greenkeeper/test/jobs/update-payments.js: babel-plugin-jest-hoist: The module factory of `jest.mock()` is not allowed to reference any out-of-scope variables. Invalid variable access: console Whitelisted objects: Array, ArrayBuffer, Boolean, DataView, Date, Error, EvalError, Float32Array, Float64Array, Function, Generator, GeneratorFunction, Infinity, Int16Array, Int32Array, Int8Array, InternalError, Intl, JSON, Map, Math, NaN, Number, Object, Promise, Proxy, RangeError, ReferenceError, Reflect, RegExp, Set, String, Symbol, SyntaxError, TypeError, URIError, Uint16Array, Uint32Array, Uint8Array, Uint8ClampedArray, WeakMap, WeakSet, arguments, expect, jest, require, undefined, DTRACE_NET_SERVER_CONNECTION, DTRACE_NET_STREAM_END, DTRACE_HTTP_SERVER_REQUEST, DTRACE_HTTP_SERVER_RESPONSE, DTRACE_HTTP_CLIENT_REQUEST, DTRACE_HTTP_CLIENT_RESPONSE, global, process, Buffer, clearImmediate, clearInterval, clearTimeout, setImmediate, setInterval, setTimeout. Note: This is a precaution to guard against uninitialized mock variables. If it is ensured that the mock is required lazily, variable names prefixed with `mock` are permitted.
I just forked and followed exactly this guide Contributing. All steps were done successfully but running test the first time result in many failed tests.
npm install
: Okdocker pull apache/couchdb:2.1.1
: Ok(echo -n "PRIVATE_KEY="; openssl genrsa 2>/dev/null | gzip | base64) >> .env
: Oknpm test
: FailedThere were many errors but I have noticed most of them related to
package.json
,github-event
,monorepo
,Some errors (there were many, if you want to see them all, let me know so I'll copy all console log).
macOS 10.12.6
NodeJS 10.0.0
The text was updated successfully, but these errors were encountered: