(name: string)
| 511 | } |
| 512 | |
| 513 | public getProjectByName(name: string): TestProject { |
| 514 | const project = this.projects.find(p => p.name === name) |
| 515 | || this.coreWorkspaceProject |
| 516 | || this.projects[0] |
| 517 | if (!project) { |
| 518 | throw new Error(`Project "${name}" was not found.`) |
| 519 | } |
| 520 | return project |
| 521 | } |
| 522 | |
| 523 | /** |
| 524 | * Import a file using Vite module runner. The file will be transformed by Vite and executed in a separate context. |
no outgoing calls