Home / Function/ shouldSkipQuery() — express Function Reference

shouldSkipQuery() — express Function Reference

Architecture documentation for the shouldSkipQuery() function in utils.js from the express codebase.

Entity Profile

Dependency Diagram

graph TD
  51006761_f7eb_0538_64b2_afa13be6d3a1["shouldSkipQuery()"]
  fc2792b2_27a7_f93a_e2de_fb2632c81d42["utils.js"]
  51006761_f7eb_0538_64b2_afa13be6d3a1 -->|defined in| fc2792b2_27a7_f93a_e2de_fb2632c81d42
  1d07feed_4e1f_9297_3624_9b4d6b6705d1["getMajorVersion()"]
  51006761_f7eb_0538_64b2_afa13be6d3a1 -->|calls| 1d07feed_4e1f_9297_3624_9b4d6b6705d1
  style 51006761_f7eb_0538_64b2_afa13be6d3a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

test/support/utils.js lines 79–85

function shouldSkipQuery(versionString) {
  // Skipping HTTP QUERY tests below Node 22, QUERY wasn't fully supported by Node until 22
  // we could update this implementation to run on supported versions of 21 once they exist
  // upstream tracking https://github.com/nodejs/node/issues/51562
  // express tracking issue: https://github.com/expressjs/express/issues/5615
  return Number(getMajorVersion(versionString)) < 22
}

Domain

Subdomains

Frequently Asked Questions

What does shouldSkipQuery() do?
shouldSkipQuery() is a function in the express codebase, defined in test/support/utils.js.
Where is shouldSkipQuery() defined?
shouldSkipQuery() is defined in test/support/utils.js at line 79.
What does shouldSkipQuery() call?
shouldSkipQuery() calls 1 function(s): getMajorVersion.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free