@@ -224,7 +224,7 @@ const UNSUPPORTED_FRAMEWORKS = [
224224 *
225225 * @param {object } [options] diagnosis options
226226 * @param {string } [options.root] repository path to inspect
227- * @param {NodeJS.ProcessEnv } [options.env] environment to inspect
227+ * @param {typeof process.env } [options.env] environment to inspect
228228 * @param {Function } [options.execFile] command runner used for git checks
229229 * @param {string } [options.gitExecutable] trusted git executable used for git checks
230230 * @param {number } [options.maxFiles] maximum number of text files to scan
@@ -544,7 +544,7 @@ function checkUnsupportedFrameworks (results, unsupported, supported) {
544544 * @param {Array<object> } results mutable result list
545545 * @param {Array<object> } frameworks detected supported frameworks
546546 * @param {object } evidence repository evidence
547- * @param {NodeJS.ProcessEnv } env environment
547+ * @param {typeof process.env } env environment
548548 */
549549function checkInitialization ( results , frameworks , evidence , env ) {
550550 if ( ! frameworks . length ) return
@@ -772,7 +772,7 @@ function checkCypressConfiguration (results, evidence) {
772772 * @param {Array<object> } results mutable result list
773773 * @param {Array<object> } workflowFiles scanned CI workflow files
774774 * @param {object } evidence repository evidence
775- * @param {NodeJS.ProcessEnv } env environment
775+ * @param {typeof process.env } env environment
776776 */
777777function checkCiConfiguration ( results , workflowFiles , evidence , env ) {
778778 if ( ! workflowFiles . length ) {
@@ -878,7 +878,7 @@ function checkCiConfiguration (results, workflowFiles, evidence, env) {
878878 *
879879 * @param {Array<object> } results mutable result list
880880 * @param {string } root repository root
881- * @param {NodeJS.ProcessEnv } env environment
881+ * @param {typeof process.env } env environment
882882 * @param {Function } execFile command runner
883883 * @param {string|undefined } gitExecutable trusted git executable
884884 */
@@ -961,7 +961,7 @@ function checkGit (results, root, env, execFile, gitExecutable) {
961961 * Checks current environment variables relevant to Test Optimization.
962962 *
963963 * @param {Array<object> } results mutable result list
964- * @param {NodeJS.ProcessEnv } env environment
964+ * @param {typeof process.env } env environment
965965 * @param {object } evidence repository evidence
966966 */
967967function checkCurrentEnvironment ( results , env , evidence ) {
@@ -1041,7 +1041,7 @@ function checkCurrentEnvironment (results, env, evidence) {
10411041 * Checks current CI provider metadata.
10421042 *
10431043 * @param {Array<object> } results mutable result list
1044- * @param {NodeJS.ProcessEnv } env environment
1044+ * @param {typeof process.env } env environment
10451045 */
10461046function checkCurrentCiMetadata ( results , env ) {
10471047 const providerDetected = CURRENT_ENV_PROVIDER_KEYS . some ( key => env [ key ] )
@@ -1374,7 +1374,7 @@ function detectUnsupportedFrameworks (definitions, manifests, scripts) {
13741374 * Collects useful boolean evidence from scanned files and environment.
13751375 *
13761376 * @param {Array<object> } textFiles scanned text files
1377- * @param {NodeJS.ProcessEnv } env environment
1377+ * @param {typeof process.env } env environment
13781378 * @returns {object } evidence object
13791379 */
13801380function collectEvidence ( textFiles , env ) {
@@ -1890,7 +1890,7 @@ function isTestSetupOrCiFile (file) {
18901890 * @param {Function } execFile command runner
18911891 * @param {string } root repository root
18921892 * @param {string|undefined } gitExecutable trusted git executable
1893- * @param {NodeJS.ProcessEnv } env credential-free git environment
1893+ * @param {typeof process.env } env credential-free git environment
18941894 * @returns {boolean } true if git runs
18951895 */
18961896function canRunGit ( execFile , root , gitExecutable , env ) {
@@ -1910,7 +1910,7 @@ function canRunGit (execFile, root, gitExecutable, env) {
19101910 * @param {Function } execFile command runner
19111911 * @param {string } root repository root
19121912 * @param {string } gitExecutable trusted git executable
1913- * @param {NodeJS.ProcessEnv } env credential-free git environment
1913+ * @param {typeof process.env } env credential-free git environment
19141914 * @param {string[] } args git arguments
19151915 * @returns {string } command output
19161916 */
@@ -1954,8 +1954,8 @@ function findTrustedGitExecutable () {
19541954 * Creates the minimal environment needed by read-only local git metadata commands.
19551955 *
19561956 * @param {string|undefined } gitExecutable trusted git executable
1957- * @param {NodeJS.ProcessEnv } sourceEnv source environment
1958- * @returns {NodeJS.ProcessEnv } credential-free git environment
1957+ * @param {typeof process.env } sourceEnv source environment
1958+ * @returns {typeof process.env } credential-free git environment
19591959 */
19601960function getGitEnvironment ( gitExecutable , sourceEnv ) {
19611961 const env = {
@@ -2067,7 +2067,7 @@ function hasRegisterInNodeOptions (nodeOptions) {
20672067/**
20682068 * Checks whether environment contains branch or tag metadata.
20692069 *
2070- * @param {NodeJS.ProcessEnv } env environment
2070+ * @param {typeof process.env } env environment
20712071 * @returns {boolean } true if branch metadata exists
20722072 */
20732073function hasBranchMetadata ( env ) {
@@ -2091,7 +2091,7 @@ function hasBranchMetadata (env) {
20912091/**
20922092 * Checks whether environment contains commit SHA metadata.
20932093 *
2094- * @param {NodeJS.ProcessEnv } env environment
2094+ * @param {typeof process.env } env environment
20952095 * @returns {boolean } true if SHA metadata exists
20962096 */
20972097function hasShaMetadata ( env ) {
0 commit comments