| 
									
										
										
										
											2020-11-11 15:29:43 +00:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google LLC All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | import {FileSystem} from '../../../src/ngtsc/file_system'; | 
					
						
							| 
									
										
										
										
											2020-11-12 19:43:35 +00:00
										 |  |  | import {CompileResult, compileTest} from '../test_helpers/compile_test'; | 
					
						
							| 
									
										
										
										
											2020-11-11 15:29:43 +00:00
										 |  |  | import {ComplianceTest} from '../test_helpers/get_compliance_tests'; | 
					
						
							|  |  |  | import {runTests} from '../test_helpers/test_runner'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | runTests('full compile', compileTests); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Fully compile all the input files in the given `test`. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @param fs The mock file-system where the input files can be found. | 
					
						
							|  |  |  |  * @param test The compliance test whose input files should be compiled. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2020-11-12 19:43:35 +00:00
										 |  |  | function compileTests(fs: FileSystem, test: ComplianceTest): CompileResult { | 
					
						
							|  |  |  |   return compileTest(fs, test.inputFiles, test.compilerOptions, test.angularCompilerOptions); | 
					
						
							| 
									
										
										
										
											2020-11-11 15:29:43 +00:00
										 |  |  | } |