Skip to content

Commit

Permalink
chore: track added files
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Apr 23, 2024
1 parent 4908339 commit 2bdf925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,10 @@ export class Vitest {

const matchingProjects: WorkspaceProject[] = []
await Promise.all(this.projects.map(async (project) => {
if (await project.isTargetFile(id))
if (await project.isTargetFile(id)) {
matchingProjects.push(project)
project.testFilesList?.push(id)
}
}))

if (matchingProjects.length > 0) {
Expand Down

0 comments on commit 2bdf925

Please sign in to comment.