Skip to content

Commit

Permalink
fix: tests are loaded from node_modules folder (#3623)
Browse files Browse the repository at this point in the history
* fix: tests are loaded from node_modules folder

* fix: node and ubuntu bump
  • Loading branch information
kobenguyent committed May 28, 2023
1 parent 4aa8450 commit 11109b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/codecept.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 11109b6

Please sign in to comment.