(options: Partial<TsProjectOptions>)
| 28 | } |
| 29 | |
| 30 | const createTsProject = (options: Partial<TsProjectOptions>) => |
| 31 | new TsProject({ |
| 32 | skipAddingFilesFromTsConfig: true, |
| 33 | skipFileDependencyResolution: true, |
| 34 | skipLoadingLibFiles: true, |
| 35 | ...options, |
| 36 | compilerOptions: { |
| 37 | allowJs: true, |
| 38 | strictNullChecks: false, |
| 39 | skipLibCheck: true, |
| 40 | ...normalizeCompilerOptions(options.compilerOptions), |
| 41 | }, |
| 42 | }) |
| 43 | |
| 44 | export interface ProjectOptions extends TsProjectOptions { |
| 45 | readFile: Runtime['fs']['readFileSync'] |
no test coverage detected