test: ignore helper files in WPTs

PR-URL: https://github.com/nodejs/node/pull/48079
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Filip Skokan
2023-05-21 14:55:33 +01:00
committed by GitHub
parent 30870d126b
commit 6439f683ee

View File

@@ -411,7 +411,7 @@ class StatusLoader {
const list = this.grep(filepath);
result = result.concat(list);
} else {
if (!(/\.\w+\.js$/.test(filepath))) {
if (!(/\.\w+\.js$/.test(filepath)) || filepath.endsWith('.helper.js')) {
continue;
}
result.push(filepath);