From 6e2f2c459ccd36754d352d46bda6425888ef088a Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Wed, 2 Oct 2024 10:13:39 +0200 Subject: [PATCH] fix: populate test tree when the new test file is created --- src/worker/vitest.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/worker/vitest.ts b/src/worker/vitest.ts index 3a0a973..470781a 100644 --- a/src/worker/vitest.ts +++ b/src/worker/vitest.ts @@ -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) } } } -- 2.54.0