| 
									
										
										
										
											2016-05-20 13:22:57 -07:00
										 |  |  | // Karma configuration
 | 
					
						
							|  |  |  | module.exports = function(config) { | 
					
						
							|  |  |  |   config.set({ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     basePath: '', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     frameworks: ['jasmine'], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     files: [ | 
					
						
							|  |  |  |       // Polyfills.
 | 
					
						
							|  |  |  |       'node_modules/es6-shim/es6-shim.js', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       'node_modules/reflect-metadata/Reflect.js', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       // System.js for module loading
 | 
					
						
							|  |  |  |       'node_modules/systemjs/dist/system-polyfills.js', | 
					
						
							|  |  |  |       'node_modules/systemjs/dist/system.src.js', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       // Zone.js dependencies
 | 
					
						
							|  |  |  |       'node_modules/zone.js/dist/zone.js', | 
					
						
							| 
									
										
										
										
											2016-05-24 13:23:05 -07:00
										 |  |  |       'node_modules/zone.js/dist/long-stack-trace-zone.js', | 
					
						
							| 
									
										
										
										
											2016-05-20 13:22:57 -07:00
										 |  |  |       'node_modules/zone.js/dist/jasmine-patch.js', | 
					
						
							|  |  |  |       'node_modules/zone.js/dist/async-test.js', | 
					
						
							| 
									
										
										
										
											2016-05-24 13:23:05 -07:00
										 |  |  |       'node_modules/zone.js/dist/fake-async-test.js', | 
					
						
							| 
									
										
										
										
											2016-05-20 13:22:57 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |       // RxJs.
 | 
					
						
							|  |  |  |       { pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false }, | 
					
						
							|  |  |  |       { pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       {pattern: 'karma-test-shim.js', included: true, watched: true}, | 
					
						
							|  |  |  |       {pattern: 'built/test/matchers.js', included: true, watched: true}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       // paths loaded via module imports
 | 
					
						
							|  |  |  |       // Angular itself
 | 
					
						
							|  |  |  |       {pattern: 'node_modules/@angular/**/*.js', included: false, watched: true}, | 
					
						
							|  |  |  |       {pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: true}, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       {pattern: 'dist/**/*.js', included: false, watched: true}, | 
					
						
							|  |  |  |       {pattern: 'dist/**/*.js.map', included: false, watched: false} | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-23 16:28:11 -07:00
										 |  |  |     preprocessors: { | 
					
						
							|  |  |  |       '**/*.js': ['sourcemap'] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 13:22:57 -07:00
										 |  |  |     reporters: ['mocha'], | 
					
						
							|  |  |  |     port: 9876, | 
					
						
							|  |  |  |     colors: true, | 
					
						
							|  |  |  |     logLevel: config.LOG_INFO, | 
					
						
							|  |  |  |     autoWatch: true, | 
					
						
							|  |  |  |     browsers: ['Chrome'], | 
					
						
							|  |  |  |     singleRun: false | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  | }; |