Commit ce9d6504a44 for nodejs
commit ce9d6504a44a50206e9c72fb2574429d1eb265b8
Author: Yuya Inoue <65857152+inoway46@users.noreply.github.com>
Date: Thu Oct 22 02:17:44 2026 +0900
test: check build options when skipping config schema test
Check QUIC and DTLS build settings when skipping the schema test.
Runtime feature helpers also depend on command-line flags.
Assisted-by: Codex
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66899
Refs: https://github.com/nodejs/node/actions/runs/39600664099/job/119224028865
Refs: https://github.com/nodejs/node/actions/runs/39594836686/job/119204469882
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
diff --git a/test/parallel/test-config-json-schema.js b/test/parallel/test-config-json-schema.js
index ef05181b50b..0d9cdb84555 100644
--- a/test/parallel/test-config-json-schema.js
+++ b/test/parallel/test-config-json-schema.js
@@ -31,7 +31,8 @@ if (!common.hasFFI) {
// The JSON schema is generated from a build with the default configuration
// options, where these are disabled and their options are not available.
-if (common.hasQuic || common.hasDtls || common.hasV8Sandbox) {
+if (process.config.variables.node_use_quic ||
+ process.config.variables.node_use_dtls || common.hasV8Sandbox) {
common.skip('this test assumes default configuration options');
}