Skip to content
Myr

skip QUERY tests for Node 21 only, still not supported (#5695)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* skip QUERY tests for Node 21 only, still not supported QUERY support has now landed in Node 22.2.0, but is still not supported in 21.7.3 QUERY showed up in http.METHODS in 21.7.2. Only Node versions after that will attempt to run tests for it, based on the way we dynamically test members of the http.METHODS array from Node * update CI to run on 21.7 and 22.2

authored by Jon Church · committed by GitHub · parent f42b160 · Browse files · 4 files+12 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+12 added−11 removed

  • tests:+10 added−9 removed
  • other:+2 added−2 removed

4 files+12 added−11 removed

modified:.github/workflows/ci.yml+2 added-2 removed
132 unmodified lines
133 - name: Node.js 20.x134 node-version: "20.11"135136 - name: Node.js 21.x137 node-version: "21.6"137 node-version: "21.7"138139 - name: Node.js 22.x140 node-version: "22.0"140 node-version: "22.2"141142 steps:143 - uses: actions/checkout@v4144
84 unmodified lines
modified:test/support/utils.js+4 added-7 removed
modified:test/app.router.js+3 added-1 removed
37 unmodified lines
3839 describe('methods', function(){40 methods.concat('del').forEach(function(method){41 if (method === 'connect') return;42 if (method === 'query' && shouldSkipQuery(process.versions.node)) return4243 it('should include ' + method.toUpperCase(), function(done){44 if (method === 'query' && shouldSkipQuery(process.versions.node)) {45 this.skip()46 }47 var app = express();4849 app[method]('/foo', function(req, res){50 res.send(method)
1066 unmodified lines
modified:test/res.send.js+3 added-1 removed
407 unmodified lines
408 });409410 methods.forEach(function (method) {411 if (method === 'connect') return;412 if (method === 'query' && shouldSkipQuery(process.versions.node)) return412413 it('should send ETag in response to ' + method.toUpperCase() + ' request', function (done) {414 if (method === 'query' && shouldSkipQuery(process.versions.node)) {415 this.skip()416 }417 var app = express();418419 app[method]('/', function (req, res) {420 res.send('kajdslfkasdf');
181 unmodified lines