From 11109b6dfb82b37080367e9dc20d86705694a655 Mon Sep 17 00:00:00 2001 From: KobeNguyenT <7845001+kobenguyent@users.noreply.github.com> Date: Sun, 28 May 2023 22:44:28 +0200 Subject: [PATCH] fix: tests are loaded from node_modules folder (#3623) * fix: tests are loaded from node_modules folder * fix: node and ubuntu bump --- lib/codecept.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/codecept.js b/lib/codecept.js index 7f9fa332e..ce21e5c68 100644 --- a/lib/codecept.js +++ b/lib/codecept.js @@ -158,6 +158,7 @@ class Codecept { for (pattern of patterns) { glob.sync(pattern, options).forEach((file) => { + if (file.includes('node_modules')) return; if (!fsPath.isAbsolute(file)) { file = fsPath.join(global.codecept_dir, file); }