Use an absolute NODE_EXTRA_CA_CERTS path in test

Remove some complexity around correctly handling a relative path to
extra CA certs by setting it to an absolute path.
This commit is contained in:
Hornwitser committed 2026-03-04 18:27:07 +01:00
1 parent fb3fe09466
commit 8a51e9cf4d
2 files changed
+2 -7

No files matched your search

+1 -6
View File
@@ -197,12 +197,7 @@ let controlConfigPath = path.join("temp", "test", "config-control.json");
function childOptions(options) {
return {
cwd: path.join("temp", "test"),
env: {
...process.env,
NODE_EXTRA_CA_CERTS: process.env.NODE_EXTRA_CA_CERTS
? path.resolve(process.env.NODE_EXTRA_CA_CERTS)
: undefined,
},
env: { ...process.env },
...options,
};
}