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