Skip to content

Commit

Permalink
fix(watch): two configs with same testDir
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed May 28, 2024
1 parent 5d0011e commit 98a9f9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/testModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ export class TestModel {
for (const include of watch.include) {
if (!include.uri)
continue;
if (!this.enabledFiles().has(include.uri.fsPath))
continue;
// Folder is watched => add file.
if (testFile.startsWith(include.uri.fsPath + path.sep)) {
files.push(testFile);
Expand Down

0 comments on commit 98a9f9b

Please sign in to comment.