(
extraOpts: TsConfigOptions = {},
compilerOptions?: TsCompilerOptions,
files?: string[],
)
| 219 | } |
| 220 | |
| 221 | tsconfig( |
| 222 | extraOpts: TsConfigOptions = {}, |
| 223 | compilerOptions?: TsCompilerOptions, |
| 224 | files?: string[], |
| 225 | ): void { |
| 226 | let tsconfig: {[key: string]: any} = { |
| 227 | extends: './tsconfig-base.json', |
| 228 | angularCompilerOptions: extraOpts, |
| 229 | }; |
| 230 | if (files !== undefined) { |
| 231 | tsconfig['files'] = files; |
| 232 | } |
| 233 | if (compilerOptions !== undefined) { |
| 234 | tsconfig['compilerOptions'] = compilerOptions; |
| 235 | } |
| 236 | this.write('tsconfig.json', JSON.stringify(tsconfig, null, 2)); |
| 237 | |
| 238 | if ( |
| 239 | extraOpts['_useHostForImportGeneration'] || |
| 240 | extraOpts['_useHostForImportAndAliasGeneration'] |
| 241 | ) { |
| 242 | setWrapHostForTest(makeWrapHost(new FileNameToModuleNameHost(this.fs))); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Run the compiler to completion, and assert that no errors occurred. |
no test coverage detected