@@ -7,7 +7,7 @@ module.exports = function( config ) {
77 let options = {
88
99 // Base path for resolving patterns
10- basePath : '' ,
10+ basePath : './ ' ,
1111
1212 // List of used frameworks (see https://npmjs.org/browse/keyword/karma-adapter)
1313 frameworks : [
@@ -33,7 +33,7 @@ module.exports = function( config ) {
3333 colors : true ,
3434
3535 // Level of logging (e.g. LOG_DISABLE, LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG )
36- logLevel : config . DEBUG ,
36+ logLevel : config . INFO ,
3737
3838 // Watcher
3939 autoWatch : true ,
@@ -61,100 +61,137 @@ module.exports = function( config ) {
6161
6262 // Polyfills (always first)
6363 {
64- pattern : './ node_modules/core-js/client/shim.js' ,
64+ pattern : 'node_modules/core-js/client/shim.js' ,
6565 included : true ,
6666 watched : false
6767 } ,
6868 {
69- pattern : './ node_modules/reflect-metadata/Reflect.js' ,
69+ pattern : 'node_modules/reflect-metadata/Reflect.js' ,
7070 included : true ,
7171 watched : false
7272 } ,
7373 {
74- pattern : './ node_modules/zone.js/dist/zone.js' ,
74+ pattern : 'node_modules/zone.js/dist/zone.js' ,
7575 included : true ,
7676 watched : false
7777 } ,
7878 {
79- pattern : './ node_modules/zone.js/dist/long-stack-trace-zone.js' ,
79+ pattern : 'node_modules/zone.js/dist/long-stack-trace-zone.js' ,
8080 included : true ,
8181 watched : false
8282 } ,
8383 {
84- pattern : './ node_modules/zone.js/dist/proxy.js' ,
84+ pattern : 'node_modules/zone.js/dist/proxy.js' ,
8585 included : true ,
8686 watched : false
8787 } ,
8888 {
89- pattern : './ node_modules/zone.js/dist/sync-test.js' ,
89+ pattern : 'node_modules/zone.js/dist/sync-test.js' ,
9090 included : true ,
9191 watched : false
9292 } ,
9393 {
94- pattern : './ node_modules/zone.js/dist/jasmine-patch.js' ,
94+ pattern : 'node_modules/zone.js/dist/jasmine-patch.js' ,
9595 included : true ,
9696 watched : false
9797 } ,
9898 {
99- pattern : './ node_modules/zone.js/dist/async-test.js' ,
99+ pattern : 'node_modules/zone.js/dist/async-test.js' ,
100100 included : true ,
101101 watched : false
102102 } ,
103103 {
104- pattern : './ node_modules/zone.js/dist/fake-async-test.js' ,
104+ pattern : 'node_modules/zone.js/dist/fake-async-test.js' ,
105105 included : true ,
106106 watched : false
107107 } ,
108108
109109 // SystemJS module loader
110110 {
111- pattern : './ node_modules/systemjs/dist/system.src.js' ,
111+ pattern : 'node_modules/systemjs/dist/system.src.js' ,
112112 included : true ,
113113 watched : false
114114 } ,
115115
116- // Framework & libraries
116+ // Angular modules
117117 {
118- pattern : './ node_modules/@angular/**/* .js' ,
118+ pattern : 'node_modules/@angular/common/bundles/common.umd .js' ,
119119 included : false ,
120120 watched : false
121121 } ,
122122 {
123- pattern : './ node_modules/@angular/**/*.js.map ' ,
123+ pattern : 'node_modules/@angular/common/bundles/common-testing.umd.js ' ,
124124 included : false ,
125125 watched : false
126126 } ,
127127 {
128- pattern : './ node_modules/rxjs/**/* .js' ,
128+ pattern : 'node_modules/@angular/compiler/bundles/compiler.umd .js' ,
129129 included : false ,
130130 watched : false
131131 } ,
132132 {
133- pattern : './node_modules/rxjs/**/*.js.map' ,
133+ pattern : 'node_modules/@angular/compiler/bundles/compiler-testing.umd.js' ,
134+ included : false ,
135+ watched : false
136+ } ,
137+ {
138+ pattern : 'node_modules/@angular/core/bundles/core.umd.js' ,
139+ included : false ,
140+ watched : false
141+ } ,
142+ {
143+ pattern : 'node_modules/@angular/core/bundles/core-testing.umd.js' ,
144+ included : false ,
145+ watched : false
146+ } ,
147+ {
148+ pattern : 'node_modules/@angular/platform-browser/bundles/platform-browser.umd.js' ,
149+ included : false ,
150+ watched : false
151+ } ,
152+ {
153+ pattern : 'node_modules/@angular/platform-browser/bundles/platform-browser-testing.umd.js' ,
154+ included : false ,
155+ watched : false
156+ } ,
157+ {
158+ pattern : 'node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js' ,
159+ included : false ,
160+ watched : false
161+ } ,
162+ {
163+ pattern : 'node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic-testing.umd.js' ,
164+ included : false ,
165+ watched : false
166+ } ,
167+
168+ // Other libraries
169+ {
170+ pattern : 'node_modules/rxjs/**/*.js' ,
134171 included : false ,
135172 watched : false
136173 } ,
137174
138175 // Configuration files
139176 {
140- pattern : './ demo/systemjs.config.js' ,
177+ pattern : 'demo/systemjs.config.js' ,
141178 included : true ,
142179 watched : false
143180 } ,
144181 {
145- pattern : './ karma-angular.config.js' ,
182+ pattern : 'karma-angular.config.js' ,
146183 included : true ,
147184 watched : false
148185 } ,
149186
150187 // Transpiled and original files as well as sourcemaps (source & tests)
151188 {
152- pattern : './ src/**/*.js' ,
189+ pattern : 'src/**/*.js' ,
153190 included : false ,
154191 watched : true // auto watch
155192 } ,
156193 {
157- pattern : './ src/**/*.js.map' ,
194+ pattern : 'src/**/*.js.map' ,
158195 included : false ,
159196 watched : false
160197 }
0 commit comments