(
extraOpts: TsConfigOptions = {},
compilerOptions?: TsCompilerOptions,
files?: string[],
)
| 261 | } |
| 262 | |
| 263 | tsconfig( |
| 264 | extraOpts: TsConfigOptions = {}, |
| 265 | compilerOptions?: TsCompilerOptions, |
| 266 | files?: string[], |
| 267 | ): void { |
| 268 | let tsconfig: {[key: string]: any} = { |
| 269 | extends: './tsconfig-base.json', |
| 270 | angularCompilerOptions: extraOpts, |
| 271 | }; |
| 272 | if (files !== undefined) { |
| 273 | tsconfig['files'] = files; |
| 274 | } |
| 275 | if (compilerOptions !== undefined) { |
| 276 | tsconfig['compilerOptions'] = compilerOptions; |
| 277 | } |
| 278 | this.write('tsconfig.json', JSON.stringify(tsconfig, null, 2)); |
| 279 | |
| 280 | if ( |
| 281 | extraOpts['_useHostForImportGeneration'] || |
| 282 | extraOpts['_useHostForImportAndAliasGeneration'] |
| 283 | ) { |
| 284 | setWrapHostForTest(makeWrapHost(new FileNameToModuleNameHost(this.fs))); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * Run the compiler to completion, and assert that no errors occurred. |
no test coverage detected