Skip to content

Commit

Permalink
fix: populate test tree when the new test file is created
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 2, 2024
1 parent e0ea185 commit 6e2f2c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/worker/vitest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ export class Vitest implements VitestMethods {
for (const project of this.ctx.projects) {
if (await project.isTargetFile(file, content)) {
testFiles.push(file)
project.testFilesList?.push(file)
this.ctx.changedTests.add(file)
}
}
}
Expand Down

0 comments on commit 6e2f2c4

Please sign in to comment.