| 
									
										
										
										
											2017-10-02 02:02:25 +08:00
										 |  |  | var webpack = require('webpack'); | 
					
						
							|  |  |  | var path = require('path'); | 
					
						
							|  |  |  | var webpackTestConfig = require('./scripts/webpack/webpack.test.js'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  | module.exports = function(config) { | 
					
						
							| 
									
										
										
										
											2017-10-02 02:02:25 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-06 16:47:14 +08:00
										 |  |  |   'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  |   config.set({ | 
					
						
							| 
									
										
										
										
											2015-12-21 18:10:16 +08:00
										 |  |  |     frameworks: ['mocha', 'expect', 'sinon'], | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // list of files / patterns to load in the browser
 | 
					
						
							|  |  |  |     files: [ | 
					
						
							| 
									
										
										
										
											2017-10-02 02:35:01 +08:00
										 |  |  |       { pattern: 'public/test/index.ts', watched: false } | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  |     ], | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-02 02:02:25 +08:00
										 |  |  |     preprocessors: { | 
					
						
							|  |  |  |       'public/test/index.ts': ['webpack', 'sourcemap'], | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     webpack: webpackTestConfig, | 
					
						
							|  |  |  |     webpackServer: { | 
					
						
							|  |  |  |       noInfo: true, // please don't spam the console when running in karma!
 | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  |     // list of files to exclude
 | 
					
						
							| 
									
										
										
										
											2014-03-22 20:45:02 +08:00
										 |  |  |     exclude: [], | 
					
						
							| 
									
										
										
										
											2014-08-06 21:57:40 +08:00
										 |  |  |     reporters: ['dots'], | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  |     port: 9876, | 
					
						
							|  |  |  |     colors: true, | 
					
						
							|  |  |  |     logLevel: config.LOG_INFO, | 
					
						
							|  |  |  |     autoWatch: true, | 
					
						
							| 
									
										
										
										
											2014-08-07 20:58:57 +08:00
										 |  |  |     browsers: ['PhantomJS'], | 
					
						
							| 
									
										
										
										
											2016-04-10 00:09:55 +08:00
										 |  |  |     captureTimeout: 20000, | 
					
						
							| 
									
										
										
										
											2014-08-07 20:58:57 +08:00
										 |  |  |     singleRun: true, | 
					
						
							| 
									
										
										
										
											2017-10-02 02:02:25 +08:00
										 |  |  |     // autoWatchBatchDelay: 1000,
 | 
					
						
							|  |  |  |     // browserNoActivityTimeout: 60000,
 | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  |   }); | 
					
						
							| 
									
										
										
										
											2015-09-11 14:00:13 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-01-02 01:40:25 +08:00
										 |  |  | }; |