Run Test on Node v12 Failed
See original GitHub issueThere are multiple opened PRs are failing due to the following errors:
- GraphQL-HTTP tests for restify Custom result extensions does nothing if extensions function does not return an object: DeprecationWarning: The legacy HTTP parser is deprecated. at <anonymous> at internalBinding (internal/bootstrap/loaders.js:136:34) at process.binding (internal/bootstrap/loaders.js:113:14) at Object.<anonymous> (node_modules/http-deceiver/lib/deceiver.js:22:24) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (node_modules/spdy/lib/spdy/handle.js:5:20) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (node_modules/spdy/lib/spdy.js:6:15) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (node_modules/restify/lib/server.js:14:12) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (node_modules/restify/lib/index.js:10:14) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at /home/runner/work/express-graphql/express-graphql/src/tests/http-test.ts:133:21 at Context.<anonymous> (src/tests/http-test.ts:2338:19) at processImmediate (internal/timers.js:461:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 83
npm ERR! express-graphql@0.12.0 testonly: mocha src/**/__tests__/**/*.ts
npm ERR! Exit status 83
npm ERR!
npm ERR! Failed at the express-graphql@0.12.0 testonly script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2021-04-13T02_03_31_597Z-debug.log Error: Process completed with exit code 83.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Test against Node.js v12 #3778 - renovatebot/renovate
Renovate appears to run fine in Node.js v12 however testing fails: Test Suites: 3 failed, 198 passed, 201 total Tests: 114 failed, ...
Read more >Test passes locally, but consistently fails in a Jenkins job - ...
Running npm install locally, some packages were indeed modified, but it had no effect on the test; Checked node versions on local and...
Read more >Mocha - the fun, simple, flexible JavaScript test framework
simple, flexible, fun. Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun....
Read more >Solved: [ERROR] Failed to execute goal com.github.eirslett...
1. Please install latest node js update npm version in pom. 2.use below command. Mvn clean install -padobe-public.
Read more >Changelog
Fixed an issue where the Cypress migration wizard would fail to run in global mode on ... In Cypress 12, we enforce running...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@justinmchase thanks for that. I made various changes in the PR accordingly e.g. https://github.com/graphql/express-graphql/pull/755/files#diff-ca140513f036f6bfbb6a70f1aa37af734be5b256801097041211bd7fa7f15584R18 node12 tests still failed. Maybe I did something wrong?
I found this: https://github.com/creationix/http-parser-js#readme
It looks like on that version of node the http parser is deprecated, newer versions its fixed. It looks like you can import this module and monkey patch the version and it will fix it for node:12