@@ -125,6 +125,10 @@ export class SimpleAngularTestRunnerComponent
125
125
{
126
126
id : 'testing' ,
127
127
url : '/assets/runner' ,
128
+ } ,
129
+ ( { evalJs } ) => {
130
+ // evalJs(this.scriptLoaderService.getScript('shim'));
131
+ // evalJs(this.scriptLoaderService.getScript('zone'));
128
132
}
129
133
) ;
130
134
@@ -136,18 +140,20 @@ export class SimpleAngularTestRunnerComponent
136
140
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'chai' ) ) ;
137
141
sandbox . evalJs ( this . scriptLoaderService . getScript ( 'mocha' ) ) ;
138
142
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'));
141
145
// sandbox.evalJs(this.scriptLoaderService.getScript('system-config'));
142
- sandbox . evalJs ( this . scriptLoaderService . getScript ( 'ng-bundle' ) ) ;
146
+ // sandbox.evalJs(this.scriptLoaderService.getScript('ng-bundle'));
143
147
144
148
this . subscription = this . changedFilesSubject . subscribe ( ( files ) => {
149
+ addMetaInformation ( sandbox , this . code ) ;
150
+
151
+
145
152
const hasErrors = Object . entries ( files )
146
- . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) )
153
+ . filter ( ( [ path ] ) => path . match ( / \. j s $ / ) && ! path . startsWith ( 'code' ) )
147
154
. map ( ( [ path , code ] ) => {
148
155
try {
149
156
sandbox . evalJs ( `console.log('I remove modul')` ) ;
150
- addMetaInformation ( sandbox , this . code ) ;
151
157
sandbox . evalJs ( code ) ;
152
158
} catch ( e ) {
153
159
console . groupCollapsed ( e . message ) ;
0 commit comments