ci: make sure we're running the sequential node tests too (#17928)

This commit is contained in:
Meghan Denny
2025-03-06 15:04:21 -08:00
committed by GitHub
parent 903d6d058c
commit 7161326baa
25 changed files with 2114 additions and 129 deletions

View File

@@ -877,12 +877,21 @@ function isNodeParallelTest(testPath) {
return testPath.replaceAll(sep, "/").includes("js/node/test/parallel/");
}
/**
* @param {string} testPath
* @returns {boolean}
*/
function isNodeSequentialTest(testPath) {
return testPath.replaceAll(sep, "/").includes("js/node/test/sequential/");
}
/**
* @param {string} path
* @returns {boolean}
*/
function isTest(path) {
if (isNodeParallelTest(path) && targetDoesRunNodeTests()) return true;
if (isNodeSequentialTest(path) && targetDoesRunNodeTests()) return true;
if (path.replaceAll(sep, "/").startsWith("js/node/cluster/test-") && path.endsWith(".ts")) return true;
return isTestStrict(path);
}