(path: string)
| 133 | |
| 134 | // e.g. benches excluded by tsconfig, which are only read for their syntax |
| 135 | private getFileOutsideProject(path: string): SourceFile | undefined { |
| 136 | if (!this.filesOutsideProject.has(path) && existsSync(path)) { |
| 137 | this.filesOutsideProject.set( |
| 138 | path, |
| 139 | this.api.createSourceFileFromFile(path).sourceFile |
| 140 | ) |
| 141 | } |
| 142 | return this.filesOutsideProject.get(path) |
| 143 | } |
| 144 | |
| 145 | private openProject(files: [path: string, contents: string][] = []): Project { |
| 146 | const snapshot = this.api.createSnapshot({ |
no test coverage detected