@@ -125,6 +125,10 @@ export class SimpleAngularTestRunnerComponent
125125 {
126126 id : 'testing' ,
127127 url : '/assets/runner' ,
128+ } ,
129+ ( { evalJs } ) => {
130+ // evalJs(this.scriptLoaderService.getScript('shim'));
131+ // evalJs(this.scriptLoaderService.getScript('zone'));
128132 }
129133 ) ;
130134
@@ -136,18 +140,20 @@ export class SimpleAngularTestRunnerComponent
136140 sandbox . evalJs ( this . scriptLoaderService . getScript ( 'chai' ) ) ;
137141 sandbox . evalJs ( this . scriptLoaderService . getScript ( 'mocha' ) ) ;
138142 sandbox . evalJs ( this . scriptLoaderService . getScript ( 'test-bootstrap' ) ) ;
139- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'shim' ) ) ;
140- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'zone' ) ) ;
143+ // sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
144+ // sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
141145 // sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
142- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'ng-bundle' ) ) ;
146+ // sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
143147
144148 this . subscription = this . changedFilesSubject . subscribe ( ( files ) => {
149+ addMetaInformation ( sandbox , this . code ) ;
150+
151+
145152 const hasErrors = Object . entries ( files )
146- . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) )
153+ . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) && ! path . startsWith ( 'code' ) )
147154 . map ( ( [ path , code ] ) => {
148155 try {
149156 sandbox . evalJs ( `console.log('I remove modul')` ) ;
150- addMetaInformation ( sandbox , this . code ) ;
151157 sandbox . evalJs ( code ) ;
152158 } catch ( e ) {
153159 console . groupCollapsed ( e . message ) ;
0 commit comments