Skip to content

Commit

Permalink
fix: reset root workspace project on restart (#7238)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Jan 13, 2025
1 parent 2319f84 commit 6e51843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export class Vitest {
this._workspaceConfigPath = undefined
this.coverageProvider = undefined
this.runningPromise = undefined
this.coreWorkspaceProject = undefined
this.specifications.clearCache()
this._onUserTestsRerun = []

Expand Down
6 changes: 2 additions & 4 deletions packages/vitest/src/node/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,8 @@ export class TestProject {
return testFiles
}

/** @internal */
_parentBrowser?: ParentProjectBrowser
/** @internal */
_parent?: TestProject
private _parentBrowser?: ParentProjectBrowser
private _parent?: TestProject
/** @internal */
_initParentBrowser = deduped(async () => {
if (!this.isBrowserEnabled() || this._parentBrowser) {
Expand Down

0 comments on commit 6e51843

Please sign in to comment.