File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export class TestExecutionService implements ITestExecutionService {
125
125
await this . $liveSyncService . liveSync ( deviceDescriptors , liveSyncInfo ) ;
126
126
} ;
127
127
128
- karmaRunner . on ( "message" , ( karmaData : any ) => {
128
+ karmaRunner . on ( "message" , ( karmaData : any ) => {
129
129
this . $logger . trace ( `The received message from karma is: ` , karmaData ) ;
130
130
if ( ! karmaData . launcherConfig && ! karmaData . url ) {
131
131
return ;
@@ -219,6 +219,7 @@ export class TestExecutionService implements ITestExecutionService {
219
219
220
220
karmaConfig . projectDir = projectData . projectDir ;
221
221
karmaConfig . bundle = this . $options . bundle ;
222
+ karmaConfig . debugBrk = this . $options . debugBrk ;
222
223
karmaConfig . platform = platform . toLowerCase ( ) ;
223
224
this . $logger . debug ( JSON . stringify ( karmaConfig , null , 4 ) ) ;
224
225
Original file line number Diff line number Diff line change 1
- module . exports = function ( config ) {
1
+ module . exports = function ( config ) {
2
2
const options = {
3
3
4
4
// base path that will be used to resolve all patterns (eg. files, exclude)
@@ -11,7 +11,7 @@ module.exports = function(config) {
11
11
12
12
13
13
// list of files / patterns to load in the browser
14
- files : [ $ { testFiles } ] ,
14
+ files : [ $ { testFiles } ] ,
15
15
16
16
17
17
// list of files to exclude
@@ -75,7 +75,7 @@ module.exports = function(config) {
75
75
76
76
setWebpackPreprocessor ( config , options ) ;
77
77
setWebpack ( config , options ) ;
78
-
78
+
79
79
config . set ( options ) ;
80
80
}
81
81
@@ -98,6 +98,7 @@ function setWebpack(config, options) {
98
98
if ( config && config . bundle ) {
99
99
const env = { } ;
100
100
env [ config . platform ] = true ;
101
+ env . sourceMap = config . debugBrk ;
101
102
options . webpack = require ( './webpack.config' ) ( env ) ;
102
103
delete options . webpack . entry ;
103
104
delete options . webpack . output . libraryTarget ;
You can’t perform that action at this time.
0 commit comments