Skip to content

Commit 6e51843

Browse files
authoredJan 13, 2025··
fix: reset root workspace project on restart (#7238)
1 parent 2319f84 commit 6e51843

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎packages/vitest/src/node/core.ts

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export class Vitest {
203203
this._workspaceConfigPath = undefined
204204
this.coverageProvider = undefined
205205
this.runningPromise = undefined
206+
this.coreWorkspaceProject = undefined
206207
this.specifications.clearCache()
207208
this._onUserTestsRerun = []
208209

‎packages/vitest/src/node/project.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,8 @@ export class TestProject {
491491
return testFiles
492492
}
493493

494-
/** @internal */
495-
_parentBrowser?: ParentProjectBrowser
496-
/** @internal */
497-
_parent?: TestProject
494+
private _parentBrowser?: ParentProjectBrowser
495+
private _parent?: TestProject
498496
/** @internal */
499497
_initParentBrowser = deduped(async () => {
500498
if (!this.isBrowserEnabled() || this._parentBrowser) {

0 commit comments

Comments
 (0)
Please sign in to comment.