Skip to content

Commit 11109b6

Browse files
authored
fix: tests are loaded from node_modules folder (#3623)
* fix: tests are loaded from node_modules folder * fix: node and ubuntu bump
1 parent 4aa8450 commit 11109b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/codecept.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class Codecept {
158158

159159
for (pattern of patterns) {
160160
glob.sync(pattern, options).forEach((file) => {
161+
if (file.includes('node_modules')) return;
161162
if (!fsPath.isAbsolute(file)) {
162163
file = fsPath.join(global.codecept_dir, file);
163164
}

0 commit comments

Comments
 (0)