@@ -124,6 +124,10 @@ export class SimpleAngularTestRunnerComponent
124124 {
125125 id : 'testing' ,
126126 url : '/assets/runner' ,
127+ } ,
128+ ( { evalJs } ) => {
129+ // evalJs(this.scriptLoaderService.getScript('shim'));
130+ // evalJs(this.scriptLoaderService.getScript('zone'));
127131 }
128132 ) ;
129133
@@ -135,18 +139,20 @@ export class SimpleAngularTestRunnerComponent
135139 sandbox . evalJs ( this . scriptLoaderService . getScript ( 'chai' ) ) ;
136140 sandbox . evalJs ( this . scriptLoaderService . getScript ( 'mocha' ) ) ;
137141 sandbox . evalJs ( this . scriptLoaderService . getScript ( 'test-bootstrap' ) ) ;
138- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'shim' ) ) ;
139- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'zone' ) ) ;
142+ // sandbox.evalJs(this.scriptLoaderService.getScript('shim'));
143+ // sandbox.evalJs(this.scriptLoaderService.getScript('zone'));
140144 // sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
141- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'ng-bundle' ) ) ;
145+ // sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
142146
143147 this . subscription = this . changedFilesSubject . subscribe ( ( files ) => {
148+ addMetaInformation ( sandbox , this . code ) ;
149+
150+
144151 const hasErrors = Object . entries ( files )
145- . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) )
152+ . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) && ! path . startsWith ( 'code' ) )
146153 . map ( ( [ path , code ] ) => {
147154 try {
148155 sandbox . evalJs ( `console.log('I remove modul')` ) ;
149- addMetaInformation ( sandbox , this . code ) ;
150156 sandbox . evalJs ( code ) ;
151157 } catch ( e ) {
152158 console . groupCollapsed ( e . message ) ;
0 commit comments