From 6439f683ee10dc36a97cd11cc41de250af4fea78 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 21 May 2023 14:55:33 +0100 Subject: [PATCH] test: ignore helper files in WPTs PR-URL: https://github.com/nodejs/node/pull/48079 Reviewed-By: Yagiz Nizipli Reviewed-By: Matthew Aitken Reviewed-By: Luigi Pinca --- test/common/wpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/wpt.js b/test/common/wpt.js index 5ff731e13051d5..6ec6cd8c1ec6f2 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -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);