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
node --trace-deprecation node_modules\jest-cli\bin\jest server/tests/get-tweets.test.js
Expected results: should pass cleanly
Actual results: passes but points out that Buffer(...) is deprecated
(node:2820) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (buffer.js:194:11)
at new Buffer (buffer.js:281:3)
at getTweets ($REPO_ROOT\server\get-tweets.js:9:23)
at Object. ($REPO_ROOT\server\tests\get-tweets.test.js:9:5)
at $REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:43:12
at new Promise ()
at mapper ($REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:26:19)
at $REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:73:41
at processTicksAndRejections (internal/process/task_queues.js:93:5)
PASS server/tests/get-tweets.test.js
The text was updated successfully, but these errors were encountered:
node --trace-deprecation node_modules\jest-cli\bin\jest server/tests/get-tweets.test.js
Expected results: should pass cleanly
Actual results: passes but points out that Buffer(...) is deprecated
(node:2820) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (buffer.js:194:11)
at new Buffer (buffer.js:281:3)
at getTweets ($REPO_ROOT\server\get-tweets.js:9:23)
at Object. ($REPO_ROOT\server\tests\get-tweets.test.js:9:5)
at $REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:43:12
at new Promise ()
at mapper ($REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:26:19)
at $REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:73:41
at processTicksAndRejections (internal/process/task_queues.js:93:5)
PASS server/tests/get-tweets.test.js
The text was updated successfully, but these errors were encountered: