···868868 for await (const project of teardownProjects.reverse())
869869 await project.teardownGlobalSetup()
870870871871- const closePromises: unknown[] = this.projects.map(w => w.close().then(() => w.server = undefined as any))
871871+ const closePromises: unknown[] = this.resolvedProjects.map(w => w.close().then(() => w.server = undefined as any))
872872 // close the core workspace server only once
873873 // it's possible that it's not initialized at all because it's not running any tests
874874- if (!this.projects.includes(this.coreWorkspaceProject))
874874+ if (!this.resolvedProjects.includes(this.coreWorkspaceProject))
875875 closePromises.push(this.coreWorkspaceProject.close().then(() => this.server = undefined as any))
876876877877 if (this.pool) {
···905905 this.state.getProcessTimeoutCauses().forEach(cause => console.warn(cause))
906906907907 if (!this.pool) {
908908- const runningServers = [this.server, ...this.projects.map(p => p.server)].filter(Boolean).length
908908+ const runningServers = [this.server, ...this.resolvedProjects.map(p => p.server)].filter(Boolean).length
909909910910 if (runningServers === 1)
911911 console.warn('Tests closed successfully but something prevents Vite server from exiting')