import { describe, expect, it } from "vitest"; import { LINUX_CA_BUNDLE_PATHS } from "./node-extra-ca-certs.js"; import { resolveNodeStartupTlsEnvironment } from "./node-startup-env.js";
function allowOnly(path: string) { return (candidate: string) => { if (candidate !== path) { thrownew Error("ENOENT");
}
};
}
it("uses the Linux CA bundle heuristic when available", () => { const value = resolveNodeStartupTlsEnvironment({
env: { NVM_DIR: "/home/test/.nvm" },
platform: "linux",
execPath: "/usr/bin/node",
accessSync: allowOnly(LINUX_CA_BUNDLE_PATHS[2]),
}).NODE_EXTRA_CA_CERTS; if (value !== undefined) {
expect(LINUX_CA_BUNDLE_PATHS).toContain(value);
}
});
});
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.9Bemerkung:
(vorverarbeitet am 2026-06-09)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.