File tree 3 files changed +19
-5
lines changed
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 130
130
],
131
131
"customWebpackConfig" : {
132
132
"path" : " ./angular.webpack.js" ,
133
- "target" : " web "
133
+ "target" : " electron-renderer "
134
134
}
135
135
}
136
136
},
Original file line number Diff line number Diff line change 70
70
"jasmine-core" : " 3.4.0" ,
71
71
"jasmine-spec-reporter" : " 4.2.1" ,
72
72
"karma" : " 4.2.0" ,
73
- "karma-chrome-launcher" : " 3.0.0" ,
74
73
"karma-coverage-istanbul-reporter" : " 2.1.0" ,
74
+ "karma-electron" : " ^6.3.0" ,
75
75
"karma-jasmine" : " 2.0.1" ,
76
76
"karma-jasmine-html-reporter" : " 1.4.2" ,
77
77
"mocha" : " 6.2.0" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = function (config) {
7
7
frameworks : [ 'jasmine' , '@angular-devkit/build-angular' ] ,
8
8
plugins : [
9
9
require ( 'karma-jasmine' ) ,
10
- require ( 'karma-chrome-launcher ' ) ,
10
+ require ( 'karma-electron ' ) ,
11
11
require ( 'karma-jasmine-html-reporter' ) ,
12
12
require ( 'karma-coverage-istanbul-reporter' ) ,
13
13
require ( '@angular-devkit/build-angular/plugins/karma' )
@@ -25,7 +25,21 @@ module.exports = function (config) {
25
25
colors : true ,
26
26
logLevel : config . LOG_INFO ,
27
27
autoWatch : true ,
28
- browsers : [ 'Chrome' ] ,
29
- singleRun : true
28
+ browsers : [ 'AngularElectron' ] ,
29
+ singleRun : true ,
30
+ customLaunchers : {
31
+ AngularElectron : {
32
+ base : 'Electron' ,
33
+ browserWindowOptions : {
34
+ webPreferences : {
35
+ nodeIntegration : true ,
36
+ allowRunningInsecureContent : true
37
+ }
38
+ }
39
+ }
40
+ } ,
41
+ client : {
42
+ useIframe : false
43
+ }
30
44
} ) ;
31
45
} ;
You can’t perform that action at this time.
0 commit comments