The resolution context, reading build configs from disk rather than the file cache.
()
| 3400 | |
| 3401 | /** The resolution context, reading build configs from disk rather than the file cache. */ |
| 3402 | private diskContext(): ResolutionContext { |
| 3403 | return { |
| 3404 | ...this.context, |
| 3405 | readFile: (filePath: string) => { |
| 3406 | try { |
| 3407 | const abs = path.join(this.projectRoot, filePath); |
| 3408 | return fs.statSync(abs).isFile() ? fs.readFileSync(abs, 'utf-8') : null; |
| 3409 | } catch { |
| 3410 | return null; |
| 3411 | } |
| 3412 | }, |
| 3413 | }; |
| 3414 | } |
| 3415 | |
| 3416 | /** |
| 3417 | * Get detected frameworks |
no test coverage detected