| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  | // Karma configuration file, see link for more information
 | 
					
						
							|  |  |  | // https://karma-runner.github.io/0.13/config/configuration-file.html
 | 
					
						
							| 
									
										
										
										
											2017-03-27 19:13:50 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  | module.exports = function (config) { | 
					
						
							|  |  |  |   config.set({ | 
					
						
							|  |  |  |     basePath: '', | 
					
						
							| 
									
										
										
										
											2017-02-02 16:04:25 -08:00
										 |  |  |     frameworks: ['jasmine', '@angular/cli'], | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |     plugins: [ | 
					
						
							|  |  |  |       require('karma-jasmine'), | 
					
						
							|  |  |  |       require('karma-chrome-launcher'), | 
					
						
							| 
									
										
										
										
											2017-02-20 19:05:40 -08:00
										 |  |  |       require('karma-jasmine-html-reporter'), | 
					
						
							|  |  |  |       require('karma-coverage-istanbul-reporter'), | 
					
						
							| 
									
										
										
										
											2017-02-02 16:04:25 -08:00
										 |  |  |       require('@angular/cli/plugins/karma') | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2017-02-20 19:05:40 -08:00
										 |  |  |     client:{ | 
					
						
							|  |  |  |       clearContext: false // leave Jasmine Spec Runner output visible in browser
 | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |     files: [ | 
					
						
							| 
									
										
										
										
											2017-05-21 01:32:42 +03:00
										 |  |  |       { pattern: './node_modules/@angular/material/prebuilt-themes/indigo-pink.css', included: true }, | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |       { pattern: './src/test.ts', watched: false } | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |     preprocessors: { | 
					
						
							| 
									
										
										
										
											2017-02-02 16:04:25 -08:00
										 |  |  |       './src/test.ts': ['@angular/cli'] | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |     }, | 
					
						
							|  |  |  |     mime: { | 
					
						
							|  |  |  |       'text/x-typescript': ['ts','tsx'] | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2017-02-20 19:05:40 -08:00
										 |  |  |     coverageIstanbulReporter: { | 
					
						
							|  |  |  |       reports: [ 'html', 'lcovonly' ], | 
					
						
							|  |  |  |       fixWebpackSourcePaths: true | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |     }, | 
					
						
							|  |  |  |     angularCli: { | 
					
						
							|  |  |  |       environment: 'dev' | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     reporters: config.angularCli && config.angularCli.codeCoverage | 
					
						
							| 
									
										
										
										
											2017-02-20 19:05:40 -08:00
										 |  |  |               ? ['progress', 'coverage-istanbul'] | 
					
						
							|  |  |  |               : ['progress', 'kjhtml'], | 
					
						
							| 
									
										
										
										
											2017-01-27 00:20:51 -08:00
										 |  |  |     port: 9876, | 
					
						
							|  |  |  |     colors: true, | 
					
						
							|  |  |  |     logLevel: config.LOG_INFO, | 
					
						
							|  |  |  |     autoWatch: true, | 
					
						
							|  |  |  |     browsers: ['Chrome'], | 
					
						
							|  |  |  |     singleRun: false | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | }; |